mirror of https://github.com/OpenTTD/OpenTTD.git
Fix f53817987: unsafe mix of type 'TileIndex' and type 'bool'
This commit is contained in:
parent
a0c78c73e3
commit
603f625fda
|
@ -2198,7 +2198,7 @@ bool ProcessOrders(Vehicle *v)
|
|||
|
||||
/* If it is unchanged, keep it. */
|
||||
if (order->Equals(v->current_order) && (v->type == VEH_AIRCRAFT || v->dest_tile != 0) &&
|
||||
(v->type != VEH_SHIP || !order->IsType(OT_GOTO_STATION) || Station::Get(order->GetDestination())->ship_station.tile != INVALID_TILE > 0)) {
|
||||
(v->type != VEH_SHIP || !order->IsType(OT_GOTO_STATION) || Station::Get(order->GetDestination())->ship_station.tile != INVALID_TILE)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue