From e62af86066e65f9047e5eba9ccda9e9058baaed0 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 25 Jan 2014 10:42:22 +0100 Subject: [PATCH] subs: Set struct ulist member supplied properly for attackers It's set to zero via memset(). Incorrect, but harmless, because it's not actually used. Correct it anyway. Signed-off-by: Markus Armbruster --- src/lib/subs/attsub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/subs/attsub.c b/src/lib/subs/attsub.c index c6fc1cec..35f68a51 100644 --- a/src/lib/subs/attsub.c +++ b/src/lib/subs/attsub.c @@ -1075,6 +1075,7 @@ ask_olist(int combat_mode, struct combat *off, struct combat *def, } memset(llp, 0, sizeof(struct ulist)); emp_insque(&llp->queue, olist); + llp->supplied = 1; llp->mobil = mobcost; llp->unit.land = land; llp->x = llp->unit.land.lnd_x;