summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-06-04 14:48:21 +0000
committerrubidium <rubidium@openttd.org>2011-06-04 14:48:21 +0000
commit015231a478d39c1e86bccc61d08ae61b802c1b00 (patch)
treed95c94c6cabe940cb694c4525c563b011415bf02 /src
parent58e3652bd05dfe494d1cff4b51b10009c19c5e48 (diff)
downloadopenttd-015231a478d39c1e86bccc61d08ae61b802c1b00.tar.xz
(svn r22538) -Fix [FS#4619]: possible crash when opening the airport build window for the first time
Diffstat (limited to 'src')
-rw-r--r--src/airport_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp
index a8460c1a9..f739bed62 100644
--- a/src/airport_gui.cpp
+++ b/src/airport_gui.cpp
@@ -587,4 +587,5 @@ static void ShowBuildAirportPicker(Window *parent)
void InitializeAirportGui()
{
_selected_airport_class = APC_BEGIN;
+ _selected_airport_index = -1;
}