Merge pull request #1095 from udoheld/master

Fix for #1094 lua mainmemory.readbyterange() issue
This commit is contained in:
adelikat 2018-01-13 18:27:03 -06:00 committed by GitHub
commit c6bdae916f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ namespace BizHawk.Client.Common
var d = string.IsNullOrEmpty(domain) ? Domain : DomainList[VerifyMemoryDomain(domain)];
var lastAddr = length + addr;
var table = Lua.NewTable();
if (lastAddr < d.Size)
if (lastAddr <= d.Size)
{
for (var i = 0; i < length; i++)
{