summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-08-21 02:19:31 +0000
committerbelugas <belugas@openttd.org>2008-08-21 02:19:31 +0000
commit97de2577e3e3387034a1cb30c338d1539c4313b7 (patch)
tree5f8779149503deef65b2167bbfb5e9a8300fba01
parenta91c0785268be55550fa6b0a0d0da0c1e088eeb0 (diff)
downloadopenttd-97de2577e3e3387034a1cb30c338d1539c4313b7.tar.xz
(svn r14119) -Fix(r14104): Forgot to make the gui disappear when the waypoint is deleted. Smatz pointing
-rw-r--r--src/waypoint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp
index 1518176a7..58dd92a9c 100644
--- a/src/waypoint.cpp
+++ b/src/waypoint.cpp
@@ -460,7 +460,7 @@ Waypoint::~Waypoint()
free(this->name);
if (CleaningPool()) return;
-
+ DeleteWindowById(WC_WAYPOINT_VIEW, this->index);
RemoveOrderFromAllVehicles(OT_GOTO_WAYPOINT, this->index);
RedrawWaypointSign(this);