From 890a18c738269aaf6de1b7d21d1ed9372230259c Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 23 Jan 2011 13:00:50 +0000 Subject: (svn r21899) -Fix: Do not show a vehicle selection in the RefitWindow for refit orders. You cannot select anything anyway. --- src/vehicle_gui.cpp | 1 + 1 file changed, 1 insertion(+) 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: { -- cgit v1.2.3-70-g09d2