diff --git a/PortabilityLayer/PLCore.cpp b/PortabilityLayer/PLCore.cpp index 69ad2f6..fab9009 100644 --- a/PortabilityLayer/PLCore.cpp +++ b/PortabilityLayer/PLCore.cpp @@ -620,11 +620,11 @@ bool WaitForEvent(TimeTaggedVOSEvent *eventOut, uint32_t ticks) if (PortabilityLayer::EventQueue::GetInstance()->Dequeue(eventOut)) return true; - Delay(1, nullptr); - if (ticks == 0) break; + Delay(1, nullptr); + ticks--; }