Fix saveload exception handling when gamelog action in progress
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user