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 <armbru@pond.sub.org>
This commit is contained in:
parent
5c9d6063a4
commit
e62af86066
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue