From d15099dcf6feb414e621af72945b1d4676913095 Mon Sep 17 00:00:00 2001 From: jugeeya Date: Sat, 5 Aug 2023 03:05:38 -0700 Subject: [PATCH] Fix playback slot --- src/training/input_record.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/training/input_record.rs b/src/training/input_record.rs index d1ff7b9..82f9aab 100644 --- a/src/training/input_record.rs +++ b/src/training/input_record.rs @@ -316,8 +316,7 @@ pub unsafe fn playback(slot: usize) { ); CURRENT_PLAYBACK_SLOT = slot; - CURRENT_FRAME_LENGTH = P1_FRAME_LENGTH_MAPPING.lock()[CURRENT_RECORD_SLOT]; - + CURRENT_FRAME_LENGTH = P1_FRAME_LENGTH_MAPPING.lock()[CURRENT_PLAYBACK_SLOT]; INPUT_RECORD = Playback; POSSESSION = Player; INPUT_RECORD_FRAME = 0; @@ -350,6 +349,8 @@ pub unsafe fn playback_ledge(slot: usize) { ); CURRENT_PLAYBACK_SLOT = slot; + CURRENT_FRAME_LENGTH = P1_FRAME_LENGTH_MAPPING.lock()[CURRENT_PLAYBACK_SLOT]; + INPUT_RECORD = Playback; POSSESSION = Player;