@@ -124,12 +124,12 @@ bool ActivityMan::SaveCurrentGame(const std::string& fileName) {
124
124
}
125
125
}
126
126
127
- writer->NewPropertyWithValue (" MaxUniqueID" , currentMaxID);
128
- writer->NewPropertyWithValue (" CurrentSimTicks" , g_TimerMan.GetSimTickCount ());
129
127
writer->NewPropertyWithValue (" OriginalScenePresetName" , scene->GetPresetName ());
130
128
writer->NewPropertyWithValue (" PlaceObjectsIfSceneIsRestarted" , g_SceneMan.GetPlaceObjectsOnLoad ());
131
129
writer->NewPropertyWithValue (" PlaceUnitsIfSceneIsRestarted" , g_SceneMan.GetPlaceUnitsOnLoad ());
132
130
writer->NewPropertyWithValue (" Scene" , modifiableScene.get ());
131
+ writer->NewPropertyWithValue (" MaxUniqueID" , currentMaxID);
132
+ writer->NewPropertyWithValue (" CurrentSimTicks" , g_TimerMan.GetSimTickCount ());
133
133
134
134
auto saveWriterData = [](Writer* writerToSave) {
135
135
writerToSave->EndWrite ();
@@ -172,11 +172,6 @@ bool ActivityMan::LoadAndLaunchGame(const std::string& fileName) {
172
172
std::string propName = reader.ReadPropName ();
173
173
if (propName == " Activity" ) {
174
174
reader >> activity.get ();
175
- } else if (propName == " MaxUniqueID" ) {
176
- reader >> maxUniqueID;
177
- g_MovableMan.SetShouldPersistUniqueIDs (true );
178
- } else if (propName == " CurrentSimTicks" ) {
179
- reader >> simTimeTicks;
180
175
} else if (propName == " OriginalScenePresetName" ) {
181
176
reader >> originalScenePresetName;
182
177
} else if (propName == " PlaceObjectsIfSceneIsRestarted" ) {
@@ -185,6 +180,11 @@ bool ActivityMan::LoadAndLaunchGame(const std::string& fileName) {
185
180
reader >> placeUnitsIfSceneIsRestarted;
186
181
} else if (propName == " Scene" ) {
187
182
reader >> scene.get ();
183
+ } else if (propName == " MaxUniqueID" ) {
184
+ reader >> maxUniqueID;
185
+ g_MovableMan.SetShouldPersistUniqueIDs (true );
186
+ } else if (propName == " CurrentSimTicks" ) {
187
+ reader >> simTimeTicks;
188
188
}
189
189
}
190
190
0 commit comments