forked from mirror/OpenTTD
(svn r23172) -Fix (r23088) [FS#4831]: crash when looking at orders from a vehicle that's not in your company
This commit is contained in:
@@ -822,7 +822,9 @@ public:
|
|||||||
this->CreateNestedTree(desc);
|
this->CreateNestedTree(desc);
|
||||||
this->vscroll = this->GetScrollbar(ORDER_WIDGET_SCROLLBAR);
|
this->vscroll = this->GetScrollbar(ORDER_WIDGET_SCROLLBAR);
|
||||||
this->FinishInitNested(desc, v->index);
|
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->selected_order = -1;
|
||||||
this->order_over = INVALID_VEH_ORDER_ID;
|
this->order_over = INVALID_VEH_ORDER_ID;
|
||||||
|
Reference in New Issue
Block a user