mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(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:
parent
ad4dd864f9
commit
9db8351def
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user