summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-06-21 09:35:09 -0500
committer cracyc <cracyc@users.noreply.github.com>2016-06-21 09:35:09 -0500
commit200fc9859ae7f394d219e877018813cf28743e3d (patch)
tree2862c71a0b62e19ec190dd241035d7ddbc642abe
parentf08627ebdcb089d23a94147b7e8ecdcbdb55e198 (diff)
plugins/cheat: don't turn off unless on (nw)
-rw-r--r--plugins/cheat/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua
index 05242e96d0d..ad8882d0141 100644
--- a/plugins/cheat/init.lua
+++ b/plugins/cheat/init.lua
@@ -329,7 +329,7 @@ function cheat.startplugin()
index = index - #cheats
if index == 2 then
for num, cheat in pairs(cheats) do
- if cheat.script and cheat.script.off then
+ if cheat.enabled and cheat.script.off then
cheat.script.off()
end
cheat.enabled = false
@@ -340,7 +340,7 @@ function cheat.startplugin()
end
elseif index == 3 then
for num, cheat in pairs(cheats) do
- if cheat.script and cheat.script.off then
+ if cheat.enabled and cheat.script.off then
cheat.script.off()
end
end