diff --git a/src/gb/gb.c b/src/gb/gb.c index d821d8021..64b5e3b06 100644 --- a/src/gb/gb.c +++ b/src/gb/gb.c @@ -336,6 +336,8 @@ void GBProcessEvents(struct LR35902Core* cpu) { gb->memory.ime = true; GBUpdateIRQs(gb); gb->eiPending = INT_MAX; + } else { + nextEvent = gb->eiPending; } }