plugins/cheatfind: read whole block (nw)

This commit is contained in:
cracyc 2018-01-29 14:14:39 -06:00
parent 3dd081a08d
commit e491b70f03

View File

@ -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