summaryrefslogtreecommitdiff
path: root/src/order_cmd.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2019-07-06 14:54:33 +0200
committerglx22 <glx22@users.noreply.github.com>2019-07-06 15:19:33 +0200
commit603f625fdae237bc8a948329818743b015fc60b2 (patch)
tree3c5ded450d6a3a84c62d5994963a26955f0279e8 /src/order_cmd.cpp
parenta0c78c73e3c19dcbb1c295b30f17c38f7289b608 (diff)
downloadopenttd-603f625fdae237bc8a948329818743b015fc60b2.tar.xz
Fix f53817987: unsafe mix of type 'TileIndex' and type 'bool'
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r--src/order_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp
index ed2f444cc..42311a5cd 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -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;
}