]> thyrsus.com Git - vms-empire.git/commitdiff
Fix production bug in objects.c.
authorMarkus Koschany <apo@gambaru.de>
Tue, 31 Dec 2013 12:40:46 +0000 (13:40 +0100)
committerMarkus Koschany <apo@gambaru.de>
Tue, 31 Dec 2013 12:40:46 +0000 (13:40 +0100)
Instead of city the pointer should be called cityp here.
Otherwise a single city will stop producing output if this condition is true.

object.c

index 5a88e5a8a4c173da6df1bb5adc4948eb687c47a3..4f44ee025583aabebb77835ae4fc8d075bded51a 100644 (file)
--- 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;
        }
     }