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.
This commit is contained in:
sowens99 2021-09-29 20:53:52 -04:00
parent a7224b299c
commit faa5cf40ce
1 changed files with 1 additions and 2 deletions

View File

@ -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. "