(svn r10413) -Fix r10211: t->townnamegrfid was not cleared when renaming a town

This commit is contained in:
glx 2007-07-03 15:24:50 +00:00
parent b1bad4ab46
commit e08965fdcb

View File

@ -1896,6 +1896,7 @@ CommandCost CmdRenameTown(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (flags & DC_EXEC) { if (flags & DC_EXEC) {
DeleteName(t->townnametype); DeleteName(t->townnametype);
t->townnametype = str; t->townnametype = str;
t->townnamegrfid = 0;
UpdateTownVirtCoord(t); UpdateTownVirtCoord(t);
_town_sort_dirty = true; _town_sort_dirty = true;