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 5a88e5a..4f44ee0 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;
        }
     }