From faa5cf40cebc8aab1eca525a69ce77ad6d2cf87d Mon Sep 17 00:00:00 2001 From: sowens99 Date: Wed, 29 Sep 2021 20:53:52 -0400 Subject: [PATCH] Movie: display correct input difference on movie mismatch Previously, s_temp_input was being used for BOTH the savestate's and the movie's input printout in the panic alert. This commit simply performs memcpy from the correct vector for the movInput printout. --- Source/Core/Core/Movie.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/Core/Movie.cpp b/Source/Core/Core/Movie.cpp index 31e8ca3b43..f2b29fb969 100644 --- a/Source/Core/Core/Movie.cpp +++ b/Source/Core/Core/Movie.cpp @@ -1072,8 +1072,7 @@ void LoadInput(const std::string& movie_path) memcpy(&curPadState, &s_temp_input[frame * sizeof(ControllerState)], sizeof(ControllerState)); ControllerState movPadState; - memcpy(&movPadState, &s_temp_input[frame * sizeof(ControllerState)], - sizeof(ControllerState)); + memcpy(&movPadState, &movInput[frame * sizeof(ControllerState)], sizeof(ControllerState)); PanicAlertFmtT( "Warning: You loaded a save whose movie mismatches on frame {0}. You should load " "another save before continuing, or load this state with read-only mode off. "