mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(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:
parent
ab86777efa
commit
e4011426f2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user