# HG changeset patch # User frosch # Date 1264971384 0 # Node ID aceaa62dd309399e08c5349cdbf291073adb8623 # Parent 1a5f2a839c104617d033d62139334abc9a6d6a99 (svn r18976) -Fix: Estimating the cost of removing statues could clear the presence flag in the town. diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp --- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -287,9 +287,11 @@ if (IsStatue(tile)) { if (flags & DC_AUTO) return_cmd_error(STR_ERROR_OBJECT_IN_THE_WAY); - TownID town = GetStatueTownID(tile); - ClrBit(Town::Get(town)->statues, GetTileOwner(tile)); - SetWindowDirty(WC_TOWN_AUTHORITY, town); + if (flags & DC_EXEC) { + TownID town = GetStatueTownID(tile); + ClrBit(Town::Get(town)->statues, GetTileOwner(tile)); + SetWindowDirty(WC_TOWN_AUTHORITY, town); + } } if (flags & DC_EXEC) {