diff options
author | terkhen <terkhen@openttd.org> | 2011-02-15 13:27:41 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2011-02-15 13:27:41 +0000 |
commit | c36a22ba72878d136e2061e5546b40904ae3f42f (patch) | |
tree | 463cad9443f87d6fc7256b61df80950d8270c662 | |
parent | a5b9858a36d78eef15e68d45b727a932312afed2 (diff) | |
download | openttd-c36a22ba72878d136e2061e5546b40904ae3f42f.tar.xz |
(svn r22087) -Fix: When deleting towns, only relocate objects during DC_EXEC.
-rw-r--r-- | src/town_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } } |