GB: Fix missing EI

This commit is contained in:
Jeffrey Pfau 2016-08-28 10:31:22 -07:00
parent 9e4f53aa24
commit 4c5ba8d8c1
1 changed files with 2 additions and 0 deletions

View File

@ -336,6 +336,8 @@ void GBProcessEvents(struct LR35902Core* cpu) {
gb->memory.ime = true;
GBUpdateIRQs(gb);
gb->eiPending = INT_MAX;
} else {
nextEvent = gb->eiPending;
}
}