summaryrefslogtreecommitdiff
path: root/src/waypoint_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-07 08:04:40 +0000
committerrubidium <rubidium@openttd.org>2009-09-07 08:04:40 +0000
commitad70d2463425695418d90dec3888b306e2fab930 (patch)
treef07e6ad1c77d381669d46a52d353b05f73ad92cf /src/waypoint_gui.cpp
parenta34d19e9df1f19b6e51fadb329f57f763a727ad5 (diff)
downloadopenttd-ad70d2463425695418d90dec3888b306e2fab930.tar.xz
(svn r17441) -Fix (r16900): close the vehicle list of the vehicle type that visits the waypoint instead of for all vehicle types
Diffstat (limited to 'src/waypoint_gui.cpp')
-rw-r--r--src/waypoint_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/waypoint_gui.cpp b/src/waypoint_gui.cpp
index cc1f6cc5f..cc35f129a 100644
--- a/src/waypoint_gui.cpp
+++ b/src/waypoint_gui.cpp
@@ -67,7 +67,7 @@ public:
~WaypointWindow()
{
- DeleteWindowById(WC_TRAINS_LIST, (this->window_number << 16) | (this->vt << 11) | VLW_WAYPOINT_LIST | this->wp->owner);
+ DeleteWindowById(GetWindowClassForVehicleType(this->vt), (this->window_number << 16) | (this->vt << 11) | VLW_WAYPOINT_LIST | this->wp->owner);
}
virtual void SetStringParameters(int widget) const