Fix: Stop any gamelog action when recovering from SlError()
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user