Fix Cheat Mod Menu (#219)
Each cheat did not work as labelled. The checkbox for the second cheat listed activated the first cheat listed, and the third checkbox did the second cheat, and so on. The "- 1" in Line 353 did not need to be there.
This commit is contained in:
parent
73428e4d88
commit
32ec0199d8
|
@ -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 - 1 == index then
|
if i == index then
|
||||||
gPlayerSyncTable[0][cheat.codename] = value
|
gPlayerSyncTable[0][cheat.codename] = value
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue