fix nonsense in ReadByteRange; should fix #463, but havent tested

This commit is contained in:
zeromus 2015-07-26 19:56:14 -05:00
parent 2d64e0d115
commit 644a17dc19
1 changed files with 3 additions and 2 deletions

View File

@ -158,9 +158,10 @@ namespace BizHawk.Client.Common
var table = Lua.NewTable();
if (lastAddr < Domain.Size)
{
for (var i = addr; i <= lastAddr; i++)
for (var i = 0; i <length ; i++)
{
var v = Domain.PeekByte(i);
int a = addr + i;
var v = Domain.PeekByte(a);
table[i] = v;
}
}