summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-17 21:07:09 +0000
committerrubidium <rubidium@openttd.org>2008-08-17 21:07:09 +0000
commit99efe9aaae2f7d6d39ab694e0be9981b738661ec (patch)
tree0187f4162e6e574d8191d24993c7ca782e70d6f5 /src/order_gui.cpp
parentabd9f748715c3f1278d54637c725e18d5cbe5bd5 (diff)
downloadopenttd-99efe9aaae2f7d6d39ab694e0be9981b738661ec.tar.xz
(svn r14097) -Fix [FS#2085]: one couldn't get a list of vehicles sharing an order when the number of orders was 0; you could see that the vehicles had a shared order though.
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r--src/order_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 765efa1e7..9b840ffbf 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -654,7 +654,7 @@ public:
this->SetWidgetDisabledState(ORDER_WIDGET_UNLOAD, order == NULL || (order->GetNonStopType() & ONSF_NO_STOP_AT_DESTINATION_STATION) != 0); // unload
this->SetWidgetDisabledState(ORDER_WIDGET_UNLOAD_DROPDOWN, this->IsWidgetDisabled(ORDER_WIDGET_UNLOAD));
/* Disable list of vehicles with the same shared orders if there is no list */
- this->SetWidgetDisabledState(ORDER_WIDGET_SHARED_ORDER_LIST, !shared_orders || this->vehicle->orders == NULL);
+ this->SetWidgetDisabledState(ORDER_WIDGET_SHARED_ORDER_LIST, !shared_orders);
this->SetWidgetDisabledState(ORDER_WIDGET_REFIT, order == NULL); // Refit
this->SetWidgetDisabledState(ORDER_WIDGET_SERVICE, order == NULL); // Refit
this->HideWidget(ORDER_WIDGET_REFIT); // Refit