summaryrefslogtreecommitdiff
path: root/src/oldloader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/oldloader.cpp')
-rw-r--r--src/oldloader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp
index 2995733dd..feaae2149 100644
--- a/src/oldloader.cpp
+++ b/src/oldloader.cpp
@@ -345,8 +345,8 @@ static void FixOldVehicles()
* (loading) order which causes assertions and the like later on.
*/
if (!IsPlayerBuildableVehicleType(v) ||
- (v->IsPrimaryVehicle() && v->current_order.type == OT_NOTHING)) {
- v->current_order.type = OT_DUMMY;
+ (v->IsPrimaryVehicle() && v->current_order.IsType(OT_NOTHING))) {
+ v->current_order.MakeDummy();
}
FOR_ALL_VEHICLES_FROM(u, v->index + 1) {