From 2386f8e40c7c3e1cf5793b298fd2959e076394e5 Mon Sep 17 00:00:00 2001 From: Intra Date: Fri, 10 Jan 2025 13:21:42 -0600 Subject: [PATCH] [XCX] Fix crash in arts mod fix --- .../Mods/CharacterUnlockArts/patch_arts.asm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/XenobladeChroniclesX/Mods/CharacterUnlockArts/patch_arts.asm b/src/XenobladeChroniclesX/Mods/CharacterUnlockArts/patch_arts.asm index 25a14b8d..e572a7b3 100644 --- a/src/XenobladeChroniclesX/Mods/CharacterUnlockArts/patch_arts.asm +++ b/src/XenobladeChroniclesX/Mods/CharacterUnlockArts/patch_arts.asm @@ -40,7 +40,7 @@ li r12, 0 cmpwi r0, 2 beq _unlockunusedarts cmpwi r0, 3 -beq _whileLoopUseSpecificCharactersArts +beq UseSpecificCharactersArts cmpwi r0, 4 beq _unlockIndividualArts @@ -84,9 +84,10 @@ li r16, $arts addi r17, r31, $memoffset-1 b _unlockIndividualArts - -_whileLoopUseSpecificCharactersArts: +UseSpecificCharactersArts: addi r31, r31, $memoffset+0x9B +li r12, 0 +_whileLoopUseSpecificCharactersArts: stbu r12, 1(r17) cmpw r17, r31 blt+ _whileLoopUseSpecificCharactersArts