Update with current byte.

This commit is contained in:
Brandon Wright 2018-04-26 13:03:26 -05:00
parent 7bb10e10e4
commit 4fde5d5120
1 changed files with 7 additions and 2 deletions

View File

@ -429,10 +429,15 @@ void S9xDisableCheat (SCheat *c)
if (!c->enabled)
return;
c->enabled = false;
if (!Cheat.enabled)
{
c->enabled = false;
return;
}
/* Make sure we restore the up-to-date written byte */
S9xUpdateCheatInMemory (c);
c->enabled = false;
if (c->conditional && !c->cond_true)
return;