summaryrefslogtreecommitdiff
path: root/town_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'town_cmd.c')
-rw-r--r--town_cmd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/town_cmd.c b/town_cmd.c
index a8002d3f7..eb80448f1 100644
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -1502,10 +1502,11 @@ static void TownActionBuildStatue(Town* t)
TileIndex tile = t->xy;
const TileIndexDiffC *p;
- SETBIT(t->statues, _current_player);
-
for (p = _statue_tiles; p != endof(_statue_tiles); ++p) {
- if (DoBuildStatueOfCompany(tile)) return;
+ if (DoBuildStatueOfCompany(tile)) {
+ SETBIT(t->statues, _current_player);
+ return;
+ }
tile = TILE_ADD(tile, ToTileIndexDiff(*p));
}
}