mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r10413) -Fix r10211: t->townnamegrfid was not cleared when renaming a town
This commit is contained in:
parent
b1bad4ab46
commit
e08965fdcb
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user