summaryrefslogtreecommitdiff
path: root/src
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
commit7457d8807ad416f94d48089a4544495bf6e1c62a (patch)
treebcb98bded0053f037f7ca5264b20ee49a5ccfa6a /src
parentef66b087845616892df69a916844accccb79777d (diff)
downloadopenttd-7457d8807ad416f94d48089a4544495bf6e1c62a.tar.xz
(svn r12032) -Fix: When removing a statue, remove town statue flag for the statue owner, not current player.
Diffstat (limited to 'src')
-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);
}