summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-01-23 13:00:50 +0000
committerfrosch <frosch@openttd.org>2011-01-23 13:00:50 +0000
commit890a18c738269aaf6de1b7d21d1ed9372230259c (patch)
tree788260e7649e31c1784c4258a53fd868cdaa3637
parent81ef0dbcfc070fac8426cff41714e033f4be8d50 (diff)
downloadopenttd-890a18c738269aaf6de1b7d21d1ed9372230259c.tar.xz
(svn r21899) -Fix: Do not show a vehicle selection in the RefitWindow for refit orders. You cannot select anything anyway.
-rw-r--r--src/vehicle_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 13668ab54..021dda94a 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -614,6 +614,7 @@ struct RefitWindow : public Window {
r.top + WD_FRAMERECT_TOP, INVALID_VEHICLE, this->hscroll != NULL ? this->hscroll->GetPosition() : 0);
/* Highlight selected vehicles. */
+ if (this->order != INVALID_VEH_ORDER_ID) break;
int x = 0;
switch (v->type) {
case VEH_TRAIN: {