[XCX] Fix crash in arts mod fix

This commit is contained in:
Intra 2025-01-10 13:21:42 -06:00 committed by GitHub
parent 1d5a8d84ea
commit 2386f8e40c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ li r12, 0
cmpwi r0, 2 cmpwi r0, 2
beq _unlockunusedarts beq _unlockunusedarts
cmpwi r0, 3 cmpwi r0, 3
beq _whileLoopUseSpecificCharactersArts beq UseSpecificCharactersArts
cmpwi r0, 4 cmpwi r0, 4
beq _unlockIndividualArts beq _unlockIndividualArts
@ -84,9 +84,10 @@ li r16, $arts
addi r17, r31, $memoffset-1 addi r17, r31, $memoffset-1
b _unlockIndividualArts b _unlockIndividualArts
UseSpecificCharactersArts:
_whileLoopUseSpecificCharactersArts:
addi r31, r31, $memoffset+0x9B addi r31, r31, $memoffset+0x9B
li r12, 0
_whileLoopUseSpecificCharactersArts:
stbu r12, 1(r17) stbu r12, 1(r17)
cmpw r17, r31 cmpw r17, r31
blt+ _whileLoopUseSpecificCharactersArts blt+ _whileLoopUseSpecificCharactersArts