]> git.pond.sub.org Git - empserver/commitdiff
subs: Set struct ulist member supplied properly for attackers
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 25 Jan 2014 09:42:22 +0000 (10:42 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 14 Jan 2015 18:08:46 +0000 (19:08 +0100)
It's set to zero via memset().  Incorrect, but harmless, because it's
not actually used.  Correct it anyway.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/subs/attsub.c

index c6fc1cec6b3f886902c39c6aa5516352a43d2a23..35f68a515a57be7c6ff8eb79e811cfcc3a65cf47 100644 (file)
@@ -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;