Thread: Adjust checks for whether current thread is the game thread
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user