CtrlCore: Fixed TryEnteryGuiMutex in the recursive case (already locked)

This commit is contained in:
Mirek Fidler 2026-04-16 12:13:35 +02:00
parent a5b6b2af74
commit afe86a0ff2

View file

@ -40,7 +40,7 @@ void EnterGuiMutex(int n)
bool TryEnterGuiMutex()
{
if(sGLockLevel == 0 && sGLock.TryEnter()) {
if(sGLockLevel || sGLock.TryEnter()) {
sGLockLevel++;
return true;
}