summaryrefslogtreecommitdiff
path: root/src/disaster_vehicle.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-11-06 23:11:22 +0100
committerMichael Lutz <michi@icosahedron.de>2021-12-16 22:28:32 +0100
commitb0990fcff7358e839468e5cf811ffddc8b9d73e2 (patch)
tree08da5cbe48d5dcc46e8c539e0da1aa8f6233bad9 /src/disaster_vehicle.cpp
parent4fc055d6e97e76faf53ff3f29e36a4a4549bf6e7 (diff)
downloadopenttd-b0990fcff7358e839468e5cf811ffddc8b9d73e2.tar.xz
Codechange: Make TileIndex a "strong" typedef to give it a distinct type.
This is accomplished by changing it to a single member struct with the appropriate operator overloads to make it all work with not too much source modifications.
Diffstat (limited to 'src/disaster_vehicle.cpp')
-rw-r--r--src/disaster_vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/disaster_vehicle.cpp b/src/disaster_vehicle.cpp
index 126e48f5f..63f4188a8 100644
--- a/src/disaster_vehicle.cpp
+++ b/src/disaster_vehicle.cpp
@@ -941,7 +941,7 @@ void ReleaseDisastersTargetingIndustry(IndustryID i)
/* primary disaster vehicles that have chosen target */
if (v->subtype == ST_AIRPLANE || v->subtype == ST_HELICOPTER) {
/* if it has chosen target, and it is this industry (yes, dest_tile is IndustryID here), set order to "leaving map peacefully" */
- if (v->current_order.GetDestination() > 0 && v->dest_tile == i) v->current_order.SetDestination(3);
+ if (v->current_order.GetDestination() > 0 && v->dest_tile == (uint32)i) v->current_order.SetDestination(3);
}
}
}