summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/cheat/init.lua
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-04-07 19:38:18 -0500
committer cracyc <cracyc@users.noreply.github.com>2016-04-07 19:42:18 -0500
commitd88bdb6869f49548dfa4ddfd7a5dd43a4df594b2 (patch)
treeeb555bfebd63803da48693b39c1b11bfa493fa93 /plugins/cheat/init.lua
parent9f95c2e6cb5aa3c48cfc499d45ba9f705385f23e (diff)
plugins/cheat: fix more (nw)
Diffstat (limited to 'plugins/cheat/init.lua')
-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 705ecca77cb..94542aaafae 100644
--- a/plugins/cheat/init.lua
+++ b/plugins/cheat/init.lua
@@ -190,8 +190,8 @@ function cheat.startplugin()
local scr
scr = manager:machine().screens[screen]
if not scr then
- print("error loading cheat script: " .. cheat.desc)
- cheat = nil
+ local tag
+ tag, scr = next(manager:machine().screens) -- get any screen
return
end
cheat.cheat_env[name] = scr