Skip to content

Commit

Permalink
Fix f538179: unsafe mix of type 'TileIndex' and type 'bool'
Browse files Browse the repository at this point in the history
  • Loading branch information
glx22 committed Jul 6, 2019
1 parent a0c78c7 commit 603f625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/order_cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 603f625

Please sign in to comment.