CID 22473 Evaluation order violation

github issue #347
This commit is contained in:
Enno Rehling 2015-11-05 11:11:02 +01:00
parent e16e669294
commit 62d7e9e944
1 changed files with 1 additions and 1 deletions

View File

@ -525,7 +525,7 @@ damage_unit(unit * u, const char *dam, bool physical, bool magic)
void drown(region * r) void drown(region * r)
{ {
if (fval(r->terrain, SEA_REGION)) { if (fval(r->terrain, SEA_REGION)) {
unit **up = up = &r->units; unit **up = &r->units;
while (*up) { while (*up) {
unit *u = *up; unit *u = *up;