Fix f53817987: unsafe mix of type 'TileIndex' and type 'bool'

This commit is contained in:
glx 2019-07-06 14:54:33 +02:00 committed by glx22
parent a0c78c73e3
commit 603f625fda
1 changed files with 1 additions and 1 deletions

View File

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