diff --git a/CHANGES b/CHANGES index 652191c94..e92048cc9 100644 --- a/CHANGES +++ b/CHANGES @@ -49,6 +49,7 @@ Bugfixes: - GB: Fix IRQ disabling on the same T-cycle as an assert - Core: Fix ordering events when scheduling during events - GBA: Reset WAITCNT properly + - GBA Serialize: Fix loading states in Hblank Misc: - GBA Timer: Use global cycles for timers - GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722) diff --git a/src/gba/video.c b/src/gba/video.c index 702b83085..ade66932a 100644 --- a/src/gba/video.c +++ b/src/gba/video.c @@ -323,7 +323,7 @@ void GBAVideoDeserialize(struct GBAVideo* video, const struct GBASerializedState uint32_t when; LOAD_32(when, 0, &state->video.nextEvent); - GBARegisterDISPSTAT dispstat = video->p->memory.io[REG_DISPSTAT >> 1]; + GBARegisterDISPSTAT dispstat = state->io[REG_DISPSTAT >> 1]; if (GBARegisterDISPSTATIsInHblank(dispstat)) { video->event.callback = _startHdraw; } else {