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

View file

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