diff options
author | cracyc <cracyc@users.noreply.github.com> | 2021-04-04 09:58:51 -0500 |
---|---|---|
committer | cracyc <cracyc@users.noreply.github.com> | 2021-04-04 09:58:51 -0500 |
commit | 6ac210c6bea9e56943a5a4a26666e5268652942c (patch) | |
tree | e24cf4e00be36d4633dc9392303a3004a17bba4e /plugins | |
parent | e1ba0999e93c098793c2c328f6bd2214b9d709d6 (diff) |
plugins/cheat: fix getting arbitrary screen
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/cheat/init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua index bcd9aaff25a..208efc3585e 100644 --- a/plugins/cheat/init.lua +++ b/plugins/cheat/init.lua @@ -524,7 +524,8 @@ function cheat.startplugin() local scr = manager.machine.screens[screen] if not scr then local tag - tag, scr = next(manager.machine.screens) -- get any screen + local nxt, coll = manager.machine.screens:pairs() + tag, scr = nxt(coll) -- get any screen end cheat.cheat_env[name] = scr end |