Hex Editor - fix exception when pasting beyond the range of the domain, fixes #708
This commit is contained in:
parent
3daad8d916
commit
ab0b78f143
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue