From c36a22ba72878d136e2061e5546b40904ae3f42f Mon Sep 17 00:00:00 2001 From: terkhen Date: Tue, 15 Feb 2011 13:27:41 +0000 Subject: (svn r22087) -Fix: When deleting towns, only relocate objects during DC_EXEC. --- src/town_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index badcb844c..3ca3e3ddb 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -2419,7 +2419,7 @@ CommandCost CmdDeleteTown(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 try_clear = true; } else { /* Tell to find a new town. */ - o->town = NULL; + if (flags & DC_EXEC) o->town = NULL; } } } -- cgit v1.2.3-70-g09d2