From e4011426f2a4ae1ccbbced0cc45d22bce2502fe9 Mon Sep 17 00:00:00 2001 From: yexo Date: Wed, 9 Nov 2011 11:44:12 +0000 Subject: (svn r23172) -Fix (r23088) [FS#4831]: crash when looking at orders from a vehicle that's not in your company --- src/order_gui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/order_gui.cpp b/src/order_gui.cpp index 499c3d36d..90e4f8a6f 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -822,7 +822,9 @@ public: this->CreateNestedTree(desc); this->vscroll = this->GetScrollbar(ORDER_WIDGET_SCROLLBAR); this->FinishInitNested(desc, v->index); - this->DisableWidget(ORDER_WIDGET_EMPTY); + if (v->owner == _local_company) { + this->DisableWidget(ORDER_WIDGET_EMPTY); + } this->selected_order = -1; this->order_over = INVALID_VEH_ORDER_ID; -- cgit v1.2.3-70-g09d2