(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:
yexo 2011-11-09 11:44:12 +00:00
parent ab86777efa
commit e4011426f2
1 changed files with 3 additions and 1 deletions

View File

@ -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;