Fix: Stop any gamelog action when recovering from SlError()

This commit is contained in:
glx
2020-05-10 16:04:04 +02:00
committed by Charles Pigott
parent 3ba34a72aa
commit 0ed00ae111
3 changed files with 10 additions and 0 deletions

View File

@@ -341,6 +341,10 @@ void NORETURN SlError(StringID string, const char *extra_msg)
* when we access them during cleaning the pool dereferences of
* those indices will be made with segmentation faults as result. */
if (_sl.action == SLA_LOAD || _sl.action == SLA_PTRS) SlNullPointers();
/* Logging could be active. */
GamelogStopAnyAction();
throw std::exception();
}