]> git.pond.sub.org Git - empserver/commitdiff
(s_commod): When !ACTUALLY_DOIT, recursive land unit resupply didn't
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 5 Mar 2004 17:10:25 +0000 (17:10 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 5 Mar 2004 17:10:25 +0000 (17:10 +0000)
work, because the effect of the resupply was immediately undone by an
untimely getvec().

src/lib/subs/supply.c

index 47e7db1456dd93bbed8aede9078796049bc17e99..e2bc30a90020d9f8405fb8354635c237fd87ffc0 100644 (file)
@@ -413,7 +413,6 @@ s_commod(int own, int x, int y, int type, int total_wanted,
                putland(save.lnd_uid, &save);
        }
 
-       getvec(VT_ITEM, vec, (s_char *)&land, EF_LAND);
        min = get_minimum(&land, type);
        ip = &ichr[type];
        weight = ((double)ip->i_lbs);