summaryrefslogtreecommitdiffstatshomepage
path: root/plugins
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2018-01-29 14:14:39 -0600
committer cracyc <cracyc@users.noreply.github.com>2018-01-29 14:14:39 -0600
commite491b70f038fec99f824545d5d573e81f3bb6384 (patch)
tree64bb56d028d46e711ffcc58d3e18afaeebb4bae4 /plugins
parent3dd081a08ddc628fdafa9279c093f18f015fabfc (diff)
plugins/cheatfind: read whole block (nw)
Diffstat (limited to 'plugins')
-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 514e574f87e..17bfef7c4d0 100644
--- a/plugins/cheatfind/init.lua
+++ b/plugins/cheatfind/init.lua
@@ -67,7 +67,7 @@ function cheatfind.startplugin()
local temp = {}
local j = 1
if data.shift >= 0 then -- region or byte wide space
- for i = start, start + size, 1 << data.shift do
+ for i = start, start + (size << data.shift), 1 << data.shift do
if j < 65536 then
temp[j] = string.pack("B", space:read_u8(i))
j = j + 1