From aef3fba660ecb1dafaa79d4918a11104e51628cd Mon Sep 17 00:00:00 2001 From: maybegreat48 <96936658+maybegreat48@users.noreply.github.com> Date: Wed, 23 Apr 2025 17:47:12 -0400 Subject: [PATCH] fix --- src/game/features/recovery/PlayAllMissionsSolo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/features/recovery/PlayAllMissionsSolo.cpp b/src/game/features/recovery/PlayAllMissionsSolo.cpp index c5c8001..aafb218 100644 --- a/src/game/features/recovery/PlayAllMissionsSolo.cpp +++ b/src/game/features/recovery/PlayAllMissionsSolo.cpp @@ -142,13 +142,13 @@ namespace YimMenu::Features if (!m_QuickRestartPatch1) { - m_QuickRestartPatch1 = ScriptPatches::AddPatch("fm_mission_controller"_J, "2D 00 07 00 00 62 ? ? ? 56 04 00", 5, {0x72, 0x2E, 0x00, 0x01}); + m_QuickRestartPatch1 = ScriptPatches::AddPatch("fm_mission_controller"_J, ScriptPointer("QuickRestartPatch1", "2D 00 07 00 00 62 ? ? ? 56 04 00").Add(5), {0x72, 0x2E, 0x00, 0x01}); } m_QuickRestartPatch1->Enable(); if (!m_QuickRestartPatch2) { - m_QuickRestartPatch2 = ScriptPatches::AddPatch("fm_mission_controller"_J, "5A 47 00 5D ? ? ? 5D ? ? ? 75", 0, {0x2B, 0x00, 0x00}); + m_QuickRestartPatch2 = ScriptPatches::AddPatch("fm_mission_controller"_J, ScriptPointer("QuickRestartPatch2", "5A 47 00 5D ? ? ? 5D ? ? ? 75"), {0x2B, 0x00, 0x00}); } m_QuickRestartPatch2->Enable(); }