From e08965fdcb7339c82f7ca82f9e866cb1854fa32d Mon Sep 17 00:00:00 2001 From: glx Date: Tue, 3 Jul 2007 15:24:50 +0000 Subject: (svn r10413) -Fix r10211: t->townnamegrfid was not cleared when renaming a town --- src/town_cmd.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3-70-g09d2