GB: Fix missing EI
Jeffrey Pfau jeffrey@endrift.com
Sun, 28 Aug 2016 10:31:22 -0700
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/gb/gb.c
→
src/gb/gb.c
@@ -336,6 +336,8 @@ if (gb->eiPending <= 0) {
gb->memory.ime = true; GBUpdateIRQs(gb); gb->eiPending = INT_MAX; + } else { + nextEvent = gb->eiPending; } }