Skip to content

Commit

Permalink
Save productToGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
KJeff01 committed May 16, 2024
1 parent 6667023 commit 71af11e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 71af11e

Please sign in to comment.