From 62d7e9e944ada1c9dad5888c796e2da0cec75eec Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 5 Nov 2015 11:11:02 +0100 Subject: [PATCH] CID 22473 Evaluation order violation github issue #347 --- src/randenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/randenc.c b/src/randenc.c index 3a29bf886..aeb623cb9 100644 --- a/src/randenc.c +++ b/src/randenc.c @@ -525,7 +525,7 @@ damage_unit(unit * u, const char *dam, bool physical, bool magic) void drown(region * r) { if (fval(r->terrain, SEA_REGION)) { - unit **up = up = &r->units; + unit **up = &r->units; while (*up) { unit *u = *up;