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
commitde9b3945576e541387dc4b6adebf0eef78f5a948 (patch)
tree8b9ac147b892430937b7a00d4f5a006d0a52e59a
parent0543f50181fcdaa5c4f1365c2dfefc65649175a9 (diff)
downloadopenttd-de9b3945576e541387dc4b6adebf0eef78f5a948.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,