diff options
author | smatz <smatz@openttd.org> | 2008-09-12 22:52:48 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-09-12 22:52:48 +0000 |
commit | 3236b3d10e2c30ab92980c56d4810d79d12bad44 (patch) | |
tree | fbe0adf36d4f261c584585684d8dd6958b6dc259 /src | |
parent | 3b4d15d35be0b1b9f5f75124f139e89225153f0a (diff) | |
download | openttd-3236b3d10e2c30ab92980c56d4810d79d12bad44.tar.xz |
(svn r14304) -Fix (r14104): waypoint train list wasn't closed with the waypoint window (crashes since r14296)
Diffstat (limited to 'src')
-rw-r--r-- | src/waypoint_gui.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/waypoint_gui.cpp b/src/waypoint_gui.cpp index f1a1c23c1..0ce67b2f2 100644 --- a/src/waypoint_gui.cpp +++ b/src/waypoint_gui.cpp @@ -15,6 +15,7 @@ #include "gfx_func.h" #include "command_func.h" #include "functions.h" +#include "window_func.h" #include "table/strings.h" @@ -45,6 +46,11 @@ public: this->FindWindowPlacementAndResize(desc); } + ~WaypointWindow() + { + DeleteWindowById(WC_TRAINS_LIST, (this->window_number << 16) | (VEH_TRAIN << 11) | VLW_WAYPOINT_LIST | this->wp->owner); + } + virtual void OnPaint() { /* You can only change your own waypoints */ |