From 4c5ba8d8c14ec3110c732eddf2aac91379fd4e14 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 28 Aug 2016 10:31:22 -0700 Subject: [PATCH] GB: Fix missing EI --- src/gb/gb.c | 2 ++ 1 file changed, 2 insertions(+) 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; } }