Fix saveload exception handling when gamelog action in progress

pull/104/head
Jonathan G Rennison 5 years ago
parent a240a938a3
commit 0f6c5ee622

@ -65,6 +65,11 @@ void GamelogStopAction()
if (print) GamelogPrintDebug(5);
}
void GamelogStopActionIfStarted()
{
if (_gamelog_action_type != GLAT_NONE) GamelogStopAction();
}
/**
* Frees the memory allocated by a gamelog
*/

@ -2663,6 +2663,9 @@ static inline void ClearSaveLoadState()
delete _sl.lf;
_sl.lf = nullptr;
extern void GamelogStopActionIfStarted();
GamelogStopActionIfStarted();
}
/**

Loading…
Cancel
Save