Mercurial > hg > openttd
changeset 18336:d33a725432e1 draft
(svn r23172) -Fix (r23088) [FS#4831]: crash when looking at orders from a vehicle that's not in your company
author | yexo <yexo@openttd.org> |
---|---|
date | Wed, 09 Nov 2011 11:44:12 +0000 |
parents | f95316892277 |
children | f3ce001bc1d1 |
files | src/order_gui.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -822,7 +822,9 @@ 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;