summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/cheat/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/cheat/init.lua')
-rw-r--r--plugins/cheat/init.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua
index 208efc3585e..e0ae0c058ab 100644
--- a/plugins/cheat/init.lua
+++ b/plugins/cheat/init.lua
@@ -712,6 +712,9 @@ function cheat.startplugin()
hotkeymenu = false
return true
end
+ elseif event == "cancel" then
+ hotkeymenu = false
+ return true
end
return false
end
@@ -722,7 +725,9 @@ function cheat.startplugin()
elseif index == 3 then
for num, cheat in pairs(cheats) do
cheat:set_enabled(false)
- cheat:set_index(0)
+ if cheat.parameter then
+ cheat:set_index(0)
+ end
end
elseif index == 4 then
for num, cheat in pairs(cheats) do