From f5128695c54ad634e1ac45ae4271c1db5ed15fad Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 8 Sep 2010 21:37:13 +0000 Subject: (svn r20772) -Codechange: use packed VehicleListIdentifiers as window numbers --- src/waypoint_gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/waypoint_gui.cpp') diff --git a/src/waypoint_gui.cpp b/src/waypoint_gui.cpp index 430a1cf37..f6965eb98 100644 --- a/src/waypoint_gui.cpp +++ b/src/waypoint_gui.cpp @@ -13,6 +13,7 @@ #include "window_gui.h" #include "gui.h" #include "textbuf_gui.h" +#include "vehiclelist.h" #include "vehicle_gui.h" #include "viewport_func.h" #include "strings_func.h" @@ -65,7 +66,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_STATION_LIST | owner, false); + DeleteWindowById(GetWindowClassForVehicleType(this->vt), VehicleListIdentifier(VL_STATION_LIST, this->vt, owner, this->window_number).Pack(), false); } virtual void SetStringParameters(int widget) const -- cgit v1.2.3-70-g09d2