summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2019-04-01 18:22:54 +0200
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-04-02 09:46:33 +0200
commitcebdd721467834efa7dc50583b4d835d0905b8a1 (patch)
tree8d68d5f0e605d204ba4fd5834f538db2e19f512d /src
parent92d5835495f56a0f145a18d428764737d39be920 (diff)
downloadopenttd-cebdd721467834efa7dc50583b4d835d0905b8a1.tar.xz
Fix #7440: Remove town sign when deleting town, not add it once more
Diffstat (limited to 'src')
-rw-r--r--src/town_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index be5af4acf..d918fbced 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -2871,7 +2871,7 @@ CommandCost CmdDeleteTown(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
/* 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;
}