From 9b48fbd589154a0200c79153d6931e737497d6bf Mon Sep 17 00:00:00 2001 From: asimon-1 <40246417+asimon-1@users.noreply.github.com> Date: Thu, 9 Oct 2025 20:32:14 -0400 Subject: [PATCH] Fix the crash associated with the LRA resets --- src/training/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/training/mod.rs b/src/training/mod.rs index edcd22892..6a18f5401 100644 --- a/src/training/mod.rs +++ b/src/training/mod.rs @@ -427,9 +427,8 @@ pub unsafe fn handle_add_damage( // This function already checks for training mode, so we don't need to check for training mode here #[skyline::hook(offset = *OFFSET_TRAINING_RESET_CHECK, inline)] unsafe fn lra_handle(ctx: &mut InlineCtx) { - let x8 = ctx.registers[8].x() as *mut u64; if !(read(&MENU).lra_reset.as_bool()) { - *x8 = 0; + ctx.registers[8].set_x(0); } }