Fix loading/saving of rearm functionality.

master
Cyp 2011-12-01 16:34:57 +01:00
parent 999b559af3
commit ae2896fcb1
1 changed files with 2 additions and 2 deletions

View File

@ -4774,7 +4774,7 @@ static bool loadSaveStructure2(const char *pFileName, STRUCTURE **ppList)
break;
case REF_REARM_PAD:
psReArmPad = ((REARM_PAD *)psStructure->pFunctionality);
psReArmPad->reArmPoints = ini.value("Rearm/timeStarted").toInt();
psReArmPad->reArmPoints = ini.value("Rearm/reArmPoints").toInt();
psReArmPad->timeStarted = ini.value("Rearm/timeStarted").toInt();
psReArmPad->timeLastUpdated = ini.value("Rearm/timeLastUpdated").toInt();
break;
@ -4966,7 +4966,7 @@ bool writeStructFile(const char *pFileName)
REARM_PAD *psReArmPad = ((REARM_PAD *)psCurr->pFunctionality);
ini.setValue("Rearm/reArmPoints", psReArmPad->reArmPoints);
ini.setValue("Rearm/timeStarted", psReArmPad->timeStarted);
ini.setValue("Rearm/", psReArmPad->timeLastUpdated);
ini.setValue("Rearm/timeLastUpdated", psReArmPad->timeLastUpdated);
if (psReArmPad->psObj)
{
ini.setValue("Rearm/target/id", psReArmPad->psObj->id);