summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-31 23:04:45 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-31 23:04:45 +0000
commite0849acc5a4963b69d7e1a04b13d8dc4732e5d51 (patch)
treebcb98bded0053f037f7ca5264b20ee49a5ccfa6a
parentbe548ee224ed1aa33cda53defa620ee0ca472f36 (diff)
downloadopenttd-e0849acc5a4963b69d7e1a04b13d8dc4732e5d51.tar.xz
(svn r12032) -Fix: When removing a statue, remove town statue flag for the statue owner, not current player.
-rw-r--r--src/unmovable_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp
index 45d4cbc30..b73e099a5 100644
--- a/src/unmovable_cmd.cpp
+++ b/src/unmovable_cmd.cpp
@@ -267,7 +267,7 @@ static CommandCost ClearTile_Unmovable(TileIndex tile, byte flags)
if (flags & DC_AUTO) return_cmd_error(STR_5800_OBJECT_IN_THE_WAY);
TownID town = GetStatueTownID(tile);
- ClrBit(GetTown(town)->statues, _current_player);
+ ClrBit(GetTown(town)->statues, GetTileOwner(tile));
InvalidateWindow(WC_TOWN_AUTHORITY, town);
}