Fix Cheats Menu Mod Again (#238)

The Same Bug from Last Time is there but effects the first box instead, so I went to check and fixed what went wrong with the mod
This commit is contained in:
JairoThePlumber 2024-07-21 15:54:45 -07:00 committed by GitHub
parent 5ba48c0329
commit e4bdb1fb17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ end
--- @param value boolean --- @param value boolean
local function update_cheat(index, value) local function update_cheat(index, value)
for i, cheat in ipairs(sCheats) do for i, cheat in ipairs(sCheats) do
if i == index then if i == index + 1 then
gPlayerSyncTable[0][cheat.codename] = value gPlayerSyncTable[0][cheat.codename] = value
end end
end end