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:
Hatch 2024-07-18 00:08:49 +09:30 committed by GitHub
parent 73428e4d88
commit 32ec0199d8
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
local function update_cheat(index, value)
for i, cheat in ipairs(sCheats) do
if i - 1 == index then
if i == index then
gPlayerSyncTable[0][cheat.codename] = value
end
end