summaryrefslogtreecommitdiff
path: root/src/saveload/afterload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload/afterload.cpp')
-rw-r--r--src/saveload/afterload.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index 4acd05b70..e8564c7ca 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -2565,9 +2565,9 @@ bool AfterLoadGame()
if (!v->IsPrimaryVehicle()) continue;
/* Older versions are less strict with indices being in range and fix them on the fly */
- if (v->cur_auto_order_index >= v->GetNumOrders()) v->cur_auto_order_index = 0;
+ if (v->cur_implicit_order_index >= v->GetNumOrders()) v->cur_implicit_order_index = 0;
- v->cur_real_order_index = v->cur_auto_order_index;
+ v->cur_real_order_index = v->cur_implicit_order_index;
v->UpdateRealOrderIndex();
}
}