Fix #7925: Reset temporary saveload data at the start of loading a savegame instead of at the end.
Otherwise temporary data may be passed from an aborted load action to the next load action.
This commit is contained in:

committed by
Niels Martin Hansen

parent
41163331aa
commit
a4be4514c9
@@ -140,6 +140,11 @@ void CopyTempEngineData()
|
||||
if (se->name != nullptr) e->name = stredup(se->name);
|
||||
}
|
||||
|
||||
ResetTempEngineData();
|
||||
}
|
||||
|
||||
void ResetTempEngineData()
|
||||
{
|
||||
/* Get rid of temporary data */
|
||||
for (std::vector<Engine*>::iterator it = _temp_engine.begin(); it != _temp_engine.end(); ++it) {
|
||||
FreeEngine(*it);
|
||||
|
Reference in New Issue
Block a user