GBA: Fix freeze when loading a savestate that was in the middle of saving

This commit is contained in:
Vicki Pfau 2017-02-04 11:49:07 -08:00
parent 1bb496d0fe
commit 7fd25804f5
1 changed files with 1 additions and 0 deletions

View File

@ -548,6 +548,7 @@ void GBASavedataDeserialize(struct GBASavedata* savedata, const struct GBASerial
if (GBASerializedSavedataFlagsIsDustSettling(flags)) {
uint32_t when;
LOAD_32(when, 0, &state->savedata.settlingDust);
mTimingDeschedule(savedata->timing, &savedata->dust);
mTimingSchedule(savedata->timing, &savedata->dust, when);
}
}