Fix att_reacting_units() to initialize ulist member eff
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 2 Jan 2010 08:27:55 +0000 (09:27 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 19 Jan 2010 07:37:05 +0000 (08:37 +0100)
This left initial eff at zero.  No effect, because its only user
get_land() ignores efficiency increases.

src/lib/subs/attsub.c

index dcf62b9925a378b97f681e807a91421373e3e00f..79f11d834ffbb48f3541bfe87336a8b011dfba62 100644 (file)
@@ -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);