From 32ec0199d8a912b94ea2c281ca4330cb9141109d Mon Sep 17 00:00:00 2001 From: Hatch Date: Thu, 18 Jul 2024 00:08:49 +0930 Subject: [PATCH] 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. --- mods/cheats.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/cheats.lua b/mods/cheats.lua index dcdb3672..21b663d3 100644 --- a/mods/cheats.lua +++ b/mods/cheats.lua @@ -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