summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;