Explorar el Código

Kernel/Semaphore: Small style change

Subv hace 11 años
padre
commit
ea95876431
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/core/hle/kernel/semaphore.cpp

+ 1 - 1
src/core/hle/kernel/semaphore.cpp

@@ -34,7 +34,7 @@ public:
     }
 
     ResultVal<bool> WaitSynchronization() override {
-        bool wait = available_count == 0;
+        bool wait = !IsAvailable();
 
         if (wait) {
             Kernel::WaitCurrentThread(WAITTYPE_SEMA, GetHandle());