From 71af11ea31b60c3cecd3de9b036804db9e3aebad Mon Sep 17 00:00:00 2001 From: KJeff01 Date: Wed, 15 May 2024 16:35:52 -0500 Subject: [PATCH] Save `productToGroup` --- src/game.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game.cpp b/src/game.cpp index 9b5ed876762..2f381467024 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -6283,6 +6283,7 @@ static bool loadSaveStructure2(const char *pFileName) asProductionRun[psFactory->psAssemblyPoint->factoryType][psFactory->psAssemblyPoint->factoryInc].push_back(currentProd); } } + psStructure->productToGroup = ini.value("productToGroup", UBYTE_MAX).toInt(); break; case REF_RESEARCH: psResearch = ((RESEARCH_FACILITY *)psStructure->pFunctionality); @@ -6528,6 +6529,7 @@ bool writeStructFile(const char *pFileName) { ini.setValue("Factory/productionRuns", 0); } + ini.setValue("productToGroup", psCurr->productToGroup); } else if (psCurr->pStructureType->type == REF_RESEARCH) {