summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/cheatfind
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-11-02 12:14:39 -0500
committer cracyc <cracyc@users.noreply.github.com>2016-11-02 12:16:10 -0500
commitbfc49b0974e4d040122dc8e546992d0ebdc418aa (patch)
tree14384314d7a5dc49aedbdf11d7e9c1b4270f9ad4 /plugins/cheatfind
parent431f8d361140dff4b2990a0845d8958281c90162 (diff)
luaengine: bugfixes (nw)
Diffstat (limited to 'plugins/cheatfind')
-rw-r--r--plugins/cheatfind/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/cheatfind/init.lua b/plugins/cheatfind/init.lua
index 5649113b265..5b52062a80b 100644
--- a/plugins/cheatfind/init.lua
+++ b/plugins/cheatfind/init.lua
@@ -52,7 +52,7 @@ function cheatfind.startplugin()
-- save data block
function cheat.save(space, start, size)
local data = { block = "", start = start, size = size, space = space }
- if space.shortname then
+ if getmetatable(space).__name:match("device_t") then
if space:shortname() == "ram" then
data.block = emu.item(space.items["0/m_pointer"]):read_block(start, size)
if not data.block then