Fix att_reacting_units() to initialize ulist member eff
This left initial eff at zero. No effect, because its only user get_land() ignores efficiency increases.
This commit is contained in:
parent
ec75a407c7
commit
d4f1e02273
1 changed files with 1 additions and 0 deletions
|
@ -1537,6 +1537,7 @@ att_reacting_units(struct combat *def, struct emp_qelem *list, int a_spy,
|
|||
llp->y = origy;
|
||||
llp->chrp = (struct empobj_chr *)&lchr[(int)land.lnd_type];
|
||||
llp->unit.land = land;
|
||||
llp->eff = land.lnd_effic;
|
||||
emp_insque(&llp->queue, list);
|
||||
if (lnd_spyval(&land) > *d_spyp)
|
||||
*d_spyp = lnd_spyval(&land);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue