summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-05-02 10:23:53 -0500
committer cracyc <cracyc@users.noreply.github.com>2016-05-02 10:23:53 -0500
commitecc9d9d096588b9f52a4c136f30887e7c2d4b60e (patch)
treedf86ed0e200caf3c24004ba7443e5d632ded9e7a
parent216869186c3521f724edee4c16b94b45c9656838 (diff)
plugins/cheatfind: match is in closure scope (nw)
-rw-r--r--plugins/cheatfind/init.lua15
1 files changed, 0 insertions, 15 deletions
diff --git a/plugins/cheatfind/init.lua b/plugins/cheatfind/init.lua
index f0b516c72e7..60aa610b221 100644
--- a/plugins/cheatfind/init.lua
+++ b/plugins/cheatfind/init.lua
@@ -519,7 +519,6 @@ function cheatfind.startplugin()
return mpairs_it, list, 0
end
local bitwidth = formtable[width]:sub(2, 2):lower()
- local mstart = #menu + 1
if bitwidth == "h" then
bitwidth = " %04x"
elseif bitwidth == "l" then
@@ -551,20 +550,6 @@ function cheatfind.startplugin()
local r
match.mode, r = incdec(event, match.mode, 1, 3)
if event == "select" then
- local match
- if matchsel == 0 then
- local sel = index - mstart
- for i = 1, #matches[#matches] do
- if sel <= #matches[#matches][i] then
- match = matches[#matches][i][sel]
- break
- else
- sel = sel - #matches[#matches][i]
- end
- end
- else
- match = matches[#matches][matchsel][index - mstart]
- end
local dev = devtable[devcur]
local cheat = { desc = string.format("Test cheat at addr %08X", match.addr), script = {} }
local wid = formtable[width]:sub(2, 2):lower()