Cheats: Fix 2 byte return values

Fixes #1060
This commit is contained in:
alyosha-tas 2017-11-21 09:58:16 -05:00
parent 9f1c5b45c0
commit 7a987810ef
1 changed files with 4 additions and 4 deletions

View File

@ -288,18 +288,18 @@ namespace BizHawk.Client.Common
{ {
if (addr == _watch.Address) if (addr == _watch.Address)
{ {
return (byte)(_val & 0xFF);
}
return (byte)(_val >> 8); return (byte)(_val >> 8);
} }
return (byte)(_val & 0xFF);
}
else else
{ {
if (addr == _watch.Address) if (addr == _watch.Address)
{ {
return (byte)(_val >> 8);
}
return (byte)(_val & 0xFF); return (byte)(_val & 0xFF);
} }
return (byte)(_val >> 8);
}
case WatchSize.DWord: case WatchSize.DWord:
if (_watch.BigEndian) if (_watch.BigEndian)
{ {