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:
parent
5ba48c0329
commit
e4bdb1fb17
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue