From a488b2c0cab861ca93a02ebf05a0dd813618bf84 Mon Sep 17 00:00:00 2001 From: skidau Date: Fri, 13 Apr 2012 19:50:44 +1000 Subject: [PATCH] Fixed the rerecord counter when using more than one save state. Patch by rdragoon. --- Source/Core/Core/Src/Movie.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Core/Core/Src/Movie.cpp b/Source/Core/Core/Src/Movie.cpp index 8777976776..590f8bb5e8 100644 --- a/Source/Core/Core/Src/Movie.cpp +++ b/Source/Core/Core/Src/Movie.cpp @@ -627,6 +627,10 @@ void LoadInput(const char *filename) if (!g_bReadOnly) { + if (g_rerecords > tmpHeader.numRerecords) + { + tmpHeader.numRerecords = g_rerecords; + } tmpHeader.numRerecords++; t_record.Seek(0, SEEK_SET); t_record.WriteArray(&tmpHeader, 1);