From f62fc1f13f8c9ac1f8b62355f7c09d4dd38024b8 Mon Sep 17 00:00:00 2001 From: Sour Date: Thu, 23 Jan 2020 21:08:46 -0500 Subject: [PATCH] Action53: Fixed 6502 CPU crash when loading game with runahead enabled (save state issue) --- Core/Action53.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Core/Action53.h b/Core/Action53.h index 10a52019..014e001c 100644 --- a/Core/Action53.h +++ b/Core/Action53.h @@ -16,6 +16,7 @@ protected: void InitMapper() override { _selectedReg = 0; + _mirroringBit = 0; memset(_regs, 0, sizeof(_regs)); AddRegisterRange(0x5000, 0x5FFF, MemoryOperation::Write); @@ -29,10 +30,6 @@ protected: ArrayInfo regs{ _regs,4 }; Stream(_selectedReg, _mirroringBit, regs); - - if(!saving) { - UpdateState(); - } } void UpdateState()