mirror of https://github.com/OpenTTD/OpenTTD
(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
parent
ad4dd864f9
commit
9db8351def
|
@ -1264,7 +1264,7 @@ public:
|
||||||
* the order is copied to the last open window instead of the
|
* the order is copied to the last open window instead of the
|
||||||
* one where GOTO is enabled
|
* 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;
|
_place_clicked_vehicle = NULL;
|
||||||
this->HandleOrderVehClick(v);
|
this->HandleOrderVehClick(v);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue