diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-31 23:04:45 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-31 23:04:45 +0000 |
commit | e0849acc5a4963b69d7e1a04b13d8dc4732e5d51 (patch) | |
tree | bcb98bded0053f037f7ca5264b20ee49a5ccfa6a | |
parent | be548ee224ed1aa33cda53defa620ee0ca472f36 (diff) | |
download | openttd-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.cpp | 2 |
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); } |