From 666702388b94de91bea86cd4ef1e6224acc1b26b Mon Sep 17 00:00:00 2001 From: KJeff01 Date: Wed, 15 May 2024 16:15:24 -0500 Subject: [PATCH] Save and load the repairGroup --- src/game.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game.cpp b/src/game.cpp index d5268bb3ece..9b5ed876762 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -5594,6 +5594,7 @@ static bool loadSaveDroid(const char *pFileName, PerPlayerDroidLists& ppsCurrent } psDroid->group = ini.value("group", UBYTE_MAX).toInt(); + psDroid->repairGroup = ini.value("repairGroup", UBYTE_MAX).toInt(); int aigroup = ini.value("aigroup", -1).toInt(); if (aigroup >= 0) { @@ -5757,6 +5758,7 @@ static nlohmann::json writeDroid(const DROID *psCurr, bool onMission, int &count droidObj["aigroup/type"] = psCurr->psGroup->type; } droidObj["group"] = psCurr->group; // different kind of group. of course. + droidObj["repairGroup"] = psCurr->repairGroup; if (hasCommander(psCurr) && psCurr->psGroup->psCommander->died <= NOT_CURRENT_LIST) { droidObj["commander"] = psCurr->psGroup->psCommander->id;