From 527a55195b249c9c9e6f2d5a0c7d358e87cb294f Mon Sep 17 00:00:00 2001 From: dinkc64 <12570148+dinkc64@users.noreply.github.com> Date: Fri, 7 Aug 2015 03:49:36 +0000 Subject: [PATCH] hiscore.cpp: fixed another corruption scenario - "reset puckman after a successfull boot, and exit the game before it fully boots up." --- src/burn/hiscore.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/burn/hiscore.cpp b/src/burn/hiscore.cpp index c0e6976f8..af01a7b48 100644 --- a/src/burn/hiscore.cpp +++ b/src/burn/hiscore.cpp @@ -463,7 +463,9 @@ void HiscoreReset() if (!CheckHiscoreAllowed() || !HiscoresInUse) return; if (nCpuType == -1) set_cpu_type(); - + + WriteCheck1 = 0; + for (UINT32 i = 0; i < nHiscoreNumRanges; i++) { HiscoreMemRange[i].ApplyNextFrame = 0; HiscoreMemRange[i].Applied = APPLIED_STATE_NONE;