summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-07-03 15:24:50 +0000
committerglx <glx@openttd.org>2007-07-03 15:24:50 +0000
commite08965fdcb7339c82f7ca82f9e866cb1854fa32d (patch)
treebecb4edefb75def660dbcc6e41fc591da897f2a4
parentb1bad4ab464fbcf5e4d5732342b801105153355f (diff)
downloadopenttd-e08965fdcb7339c82f7ca82f9e866cb1854fa32d.tar.xz
(svn r10413) -Fix r10211: t->townnamegrfid was not cleared when renaming a town
-rw-r--r--src/town_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index 0250887df..5de70f79a 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -1896,6 +1896,7 @@ CommandCost CmdRenameTown(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (flags & DC_EXEC) {
DeleteName(t->townnametype);
t->townnametype = str;
+ t->townnamegrfid = 0;
UpdateTownVirtCoord(t);
_town_sort_dirty = true;