From: Markus Koschany Date: Tue, 31 Dec 2013 12:40:46 +0000 (+0100) Subject: Fix production bug in objects.c. X-Git-Tag: 1.11~3 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=28aca61d0f710a526f51ee98c6094bc10d222c5c;p=vms-empire.git Fix production bug in objects.c. Instead of city the pointer should be called cityp here. Otherwise a single city will stop producing output if this condition is true. --- diff --git a/object.c b/object.c index 5a88e5a..4f44ee0 100644 --- a/object.c +++ b/object.c @@ -605,7 +605,7 @@ set_prod(city_info_t *cityp) else { cityp->prod = i; - city->work = -(piece_attr[i].build_time / 5); + cityp->work = -(piece_attr[i].build_time / 5); return; } }