(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

This commit is contained in:
rubidium 2010-10-12 17:19:42 +00:00
parent ad4dd864f9
commit 9db8351def

View File

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