Changeset - r23578:ebaf3ca8010b
[Not reviewed]
master
0 1 0
Niels Martin Hansen - 6 years ago 2019-04-01 16:22:54
nielsm@indvikleren.dk
Fix #7440: Remove town sign when deleting town, not add it once more
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -2871,7 +2871,7 @@ CommandCost CmdDeleteTown(TileIndex tile
 
	/* The town destructor will delete the other things related to the town. */
 
	if (flags & DC_EXEC) {
 
		_town_kdtree.Remove(t->index);
 
		_viewport_sign_kdtree.Insert(ViewportSignKdtreeItem::MakeTown(t->index));
 
		_viewport_sign_kdtree.Remove(ViewportSignKdtreeItem::MakeTown(t->index));
 
		delete t;
 
	}
 

	
0 comments (0 inline, 0 general)