Don't terminate modID update/simulation save option search loop early

This commit is contained in:
JoePfeiffer 2023-03-02 11:56:37 -07:00
parent f7792e5222
commit f98a8749db

View File

@ -61,7 +61,7 @@ public class OpenRocketLoader extends AbstractRocketLoader {
} }
// If we saved data for a simulation before, we'll use that as our default option this time // If we saved data for a simulation before, we'll use that as our default option this time
boolean saveData = false; // Also, updaet all the sims' modIDs to agree with flight config
for (Simulation s : doc.getSimulations()) { for (Simulation s : doc.getSimulations()) {
s.syncModID(); // The config's modID can be out of sync with the simulation's after the whole loading process s.syncModID(); // The config's modID can be out of sync with the simulation's after the whole loading process
if (s.getStatus() == Simulation.Status.EXTERNAL || if (s.getStatus() == Simulation.Status.EXTERNAL ||
@ -79,8 +79,6 @@ public class OpenRocketLoader extends AbstractRocketLoader {
continue; continue;
doc.getDefaultStorageOptions().setSaveSimulationData(true); doc.getDefaultStorageOptions().setSaveSimulationData(true);
break;
} }
doc.getDefaultStorageOptions().setExplicitlySet(false); doc.getDefaultStorageOptions().setExplicitlySet(false);