Fix saveload exception handling when gamelog action in progress

This commit is contained in:
Jonathan G Rennison
2019-07-11 03:12:44 +01:00
parent a240a938a3
commit 0f6c5ee622
2 changed files with 8 additions and 0 deletions

View File

@@ -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
*/