apply patch #3534136 to fix lua's readbyterange function

This commit is contained in:
zeromus 2012-06-10 16:11:15 +00:00
parent 4a6c59e018
commit 811b94de9b
1 changed files with 1 additions and 1 deletions

View File

@ -1856,7 +1856,7 @@ DEFINE_LUA_FUNCTION(memory_readbyterange, "address,length")
{
if(IsHardwareAddressValid(a))
{
unsigned char value = (unsigned char)(_MMU_read08<ARMCPU_ARM9>(address) & 0xFF);
unsigned char value = (unsigned char)(_MMU_read08<ARMCPU_ARM9>(a) & 0xFF);
lua_pushinteger(L, value);
lua_rawseti(L, -2, n);
}