don't lose cheat compare value when toggle cheat enables through UI (fix #3423777)

This commit is contained in:
zeromus 2011-10-15 18:59:07 +00:00
parent 11a99a56e3
commit 07dde626de
1 changed files with 2 additions and 1 deletions

View File

@ -622,7 +622,8 @@ int FCEUI_SetCheat(uint32 which, const char *name, int32 a, int32 v, int compare
next->val=v;
if(s>=0)
next->status=s;
next->compare=compare;
if(compare>=0)
next->compare=compare;
next->type=type;
savecheats=1;