summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2017-06-15 19:39:57 -0500
committer GitHub <noreply@github.com>2017-06-15 19:39:57 -0500
commit4d69d70d20b150d4855e818c71f82e6ca1c96370 (patch)
treeb5deba62c2115ef5fa5fffb124b3f6a74d773338
parenteca12411449301750a16b0dd0eb862f25bbd5b2c (diff)
plugins/cheat: oops (nw)
-rw-r--r--plugins/cheat/cheat_simple.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/cheat/cheat_simple.lua b/plugins/cheat/cheat_simple.lua
index 7058dfa8a0b..c10c0a6ac41 100644
--- a/plugins/cheat/cheat_simple.lua
+++ b/plugins/cheat/cheat_simple.lua
@@ -192,7 +192,7 @@ function codefuncs.megadriv_ar(desc, code)
if #code ~= 10 then
error("error action replay cheat incorrect length " .. desc)
end
- local addr = tonumber(code:sub(1, 7), 16)
+ local addr = tonumber(code:sub(1, 6), 16)
local val = tonumber(code:sub(7, 10), 16)
if addr < 0xff0000 then
error("error action replay cheat not ram addr " .. desc)