diff --git a/r5dev/tier0/threadtools.cpp b/r5dev/tier0/threadtools.cpp index 0972a0c3..5a0d0000 100644 --- a/r5dev/tier0/threadtools.cpp +++ b/r5dev/tier0/threadtools.cpp @@ -43,7 +43,7 @@ int CThreadFastMutex::Lock(void) result = ThreadInterlockedCompareExchange((volatile LONG*)&m_lAddend, 0, 1); - if (result) + if (!result) break; if (++cycle > 5)