summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-10 10:41:22 +0000
committerrubidium <rubidium@openttd.org>2009-01-10 10:41:22 +0000
commitc8f3630e64bbdcfca462003e63eff8b49c3a3257 (patch)
tree8b9ac147b892430937b7a00d4f5a006d0a52e59a
parent3d6c09b38d54da55ba7688fab8acb5879a34c861 (diff)
downloadopenttd-c8f3630e64bbdcfca462003e63eff8b49c3a3257.tar.xz
(svn r14953) -Fix (r14952): the "available aircraft" list caused a crash
-rw-r--r--src/build_vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp
index 27a1e039f..70bface53 100644
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -987,7 +987,7 @@ struct BuildVehicleWindow : Window {
this->eng_list.Clear();
- const Station *st = GetStation(this->window_number);
+ const Station *st = this->listview_mode ? NULL : GetStationByTile(this->window_number);
/* Make list of all available planes.
* Also check to see if the previously selected plane is still available,