summaryrefslogtreecommitdiff
path: root/src/build_vehicle_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r--src/build_vehicle_gui.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp
index eea5d5585..763f2022f 100644
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -6,6 +6,7 @@
#include "roadveh.h"
#include "ship.h"
#include "aircraft.h"
+#include "station_base.h"
#include "articulated_vehicles.h"
#include "textbuf_gui.h"
#include "command_func.h"
@@ -843,7 +844,7 @@ struct BuildVehicleWindow : Window {
break;
case VEH_AIRCRAFT:
this->filter.flags =
- tile == INVALID_TILE ? AirportFTAClass::ALL : GetStationByTile(tile)->Airport()->flags;
+ tile == INVALID_TILE ? AirportFTAClass::ALL : Station::GetByTile(tile)->Airport()->flags;
break;
}
this->SetupWindowStrings(type);
@@ -1023,7 +1024,7 @@ struct BuildVehicleWindow : Window {
this->eng_list.Clear();
- const Station *st = this->listview_mode ? NULL : GetStationByTile(this->window_number);
+ const Station *st = this->listview_mode ? NULL : Station::GetByTile(this->window_number);
/* Make list of all available planes.
* Also check to see if the previously selected plane is still available,