From fad77261eacdbc8c3207ed920e0d0f08286b4027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guilloux?= Date: Tue, 27 Feb 2024 21:25:49 +0100 Subject: [PATCH] Fix f6dd505: Missing savegame conversion for current_order (#12188) --- src/saveload/afterload.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index 1581b7bdd48dd..7fca426964632 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -1771,6 +1771,11 @@ bool AfterLoadGame() if (!order->IsType(OT_GOTO_DEPOT)) continue; order->SetDepotActionType((OrderDepotActionFlags)(order->GetDepotActionType() >> 1)); } + + for (Vehicle *v : Vehicle::Iterate()) { + if (!v->current_order.IsType(OT_GOTO_DEPOT)) continue; + v->current_order.SetDepotActionType((OrderDepotActionFlags)(v->current_order.GetDepotActionType() >> 1)); + } } /* The water class was moved/unified. */