summaryrefslogtreecommitdiff
path: root/src/waypoint_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-06-11 00:18:28 +0000
committersmatz <smatz@openttd.org>2010-06-11 00:18:28 +0000
commitc4175b752a11b3b8c0c2d6b6677493f942b11fb8 (patch)
treebaf7ed0749d967050706ed43dd709c99ea4d93fc /src/waypoint_gui.cpp
parent8bf4a7d1ae5643b20d842f7fe9637e453614b8aa (diff)
downloadopenttd-c4175b752a11b3b8c0c2d6b6677493f942b11fb8.tar.xz
(svn r19957) -Codechange: remove VLW_WAYPOINT_LIST
Diffstat (limited to 'src/waypoint_gui.cpp')
-rw-r--r--src/waypoint_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/waypoint_gui.cpp b/src/waypoint_gui.cpp
index 630f4222a..3e7b3d44b 100644
--- a/src/waypoint_gui.cpp
+++ b/src/waypoint_gui.cpp
@@ -65,7 +65,7 @@ public:
{
Owner owner = this->owner;
if (!Company::IsValidID(owner)) owner = _local_company;
- DeleteWindowById(GetWindowClassForVehicleType(this->vt), (this->window_number << 16) | (this->vt << 11) | VLW_WAYPOINT_LIST | owner, false);
+ DeleteWindowById(GetWindowClassForVehicleType(this->vt), (this->window_number << 16) | (this->vt << 11) | VLW_STATION_LIST | owner, false);
}
virtual void SetStringParameters(int widget) const
@@ -95,7 +95,7 @@ public:
break;
case WAYPVW_SHOW_VEHICLES: // show list of vehicles having this waypoint in their orders
- ShowVehicleListWindow(this->owner, this->vt, this->wp);
+ ShowVehicleListWindow(this->owner, this->vt, this->wp->index);
break;
}
}