diff options
author | rubidium <rubidium@openttd.org> | 2010-09-08 21:37:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-09-08 21:37:13 +0000 |
commit | f5128695c54ad634e1ac45ae4271c1db5ed15fad (patch) | |
tree | 7fe3411110d924b4c2d879f3c32ceb5a0ddd4f00 /src/waypoint_gui.cpp | |
parent | 881c6c679ff2606111cb890847147556142c3451 (diff) | |
download | openttd-f5128695c54ad634e1ac45ae4271c1db5ed15fad.tar.xz |
(svn r20772) -Codechange: use packed VehicleListIdentifiers as window numbers
Diffstat (limited to 'src/waypoint_gui.cpp')
-rw-r--r-- | src/waypoint_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 |