From 9db8351deffa339a20d60446ae4fc1751e3ca4b6 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 12 Oct 2010 17:19:42 +0000 Subject: [PATCH] (svn r20916) [1.0] -Fix [FS#4159]: crash when, while the 'go to' cursor is active, you open the order list of a vehicle of another company and then select a 'go to' destination --- src/order_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/order_gui.cpp b/src/order_gui.cpp index 5030d003ae..2a66b2a83b 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -1264,7 +1264,7 @@ public: * the order is copied to the last open window instead of the * one where GOTO is enabled */ - if (v != NULL && this->IsWidgetLowered(ORDER_WIDGET_GOTO)) { + if (v != NULL && this->owner == _local_company && this->IsWidgetLowered(ORDER_WIDGET_GOTO)) { _place_clicked_vehicle = NULL; this->HandleOrderVehClick(v); }