Fixed cheats not working.

This commit is contained in:
scepheo 2014-12-14 01:51:55 +00:00
parent e6ea5bdf70
commit 5179a3379f
1 changed files with 2 additions and 0 deletions

View File

@ -621,9 +621,11 @@ namespace BizHawk.Client.Common
if (Global.CheatList.Contains(Domain, _address))
{
var cheat = Global.CheatList.FirstOrDefault(c => c.Address == _address && c.Domain == Domain);
if (cheat != (Cheat)null)
{
cheat.PokeValue(val);
PokeByte(val);
return true;
}
}