summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2011-02-15 13:27:41 +0000
committerterkhen <terkhen@openttd.org>2011-02-15 13:27:41 +0000
commitc36a22ba72878d136e2061e5546b40904ae3f42f (patch)
tree463cad9443f87d6fc7256b61df80950d8270c662 /src/town_cmd.cpp
parenta5b9858a36d78eef15e68d45b727a932312afed2 (diff)
downloadopenttd-c36a22ba72878d136e2061e5546b40904ae3f42f.tar.xz
(svn r22087) -Fix: When deleting towns, only relocate objects during DC_EXEC.
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp2
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;
}
}
}