Thread: Adjust checks for whether current thread is the game thread

This commit is contained in:
Jonathan G Rennison
2021-06-20 10:00:36 +01:00
parent 4577b547ea
commit 87948d8029
6 changed files with 23 additions and 1 deletions

View File

@@ -386,7 +386,7 @@ void NORETURN SlError(StringID string, const char *extra_msg, bool already_mallo
str = already_malloced ? const_cast<char *>(extra_msg) : stredup(extra_msg);
}
if (IsNonMainThread() && !IsGameThread() && _sl.action != SLA_SAVE) {
if (IsNonMainThread() && IsNonGameThread() && _sl.action != SLA_SAVE) {
throw ThreadSlErrorException{ string, extra_msg };
}