summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2007-12-20 22:45:56 +0000
committersmatz <smatz@openttd.org>2007-12-20 22:45:56 +0000
commit33c86f83e28012e5424303f1b9660ad7b235d011 (patch)
tree0ff5dbaa4696c08303d9d9659353e9a2c4d54dbc /src
parent0e727b8e631837ad643b536f5af9dbe6b5444ae6 (diff)
downloadopenttd-33c86f83e28012e5424303f1b9660ad7b235d011.tar.xz
(svn r11671) -Fix: sometimes a vehicle was selected in the vehicle list when it was opened
Diffstat (limited to 'src')
-rw-r--r--src/group_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index 39ca8a2c4..803511d42 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -212,6 +212,7 @@ static void CreateVehicleGroupWindow(Window *w)
gl->l.resort_timer = DAY_TICKS * PERIODIC_RESORT_DAYS; // Set up resort timer
gv->group_sel = ALL_GROUP;
+ gv->vehicle_sel = INVALID_VEHICLE;
switch (gv->vehicle_type) {
case VEH_TRAIN: