Hex Editor - fix exception when pasting beyond the range of the domain, fixes #708

This commit is contained in:
adelikat 2016-10-05 19:59:46 -05:00
parent 3daad8d916
commit ab0b78f143
1 changed files with 5 additions and 1 deletions

View File

@ -1445,8 +1445,12 @@ namespace BizHawk.Client.EmuHawk
{
var value = int.Parse(hex.Substring(i * 2, 2), NumberStyles.HexNumber);
var address = _addressHighlighted + i;
if (address < _domain.Size)
{
_domain.PokeByte(address, (byte)value);
}
}
UpdateValues();
}