- fixed bad operator grouping in cheat code.

This commit is contained in:
Christoph Oelckers 2021-07-25 17:17:29 +02:00
parent 5c5799c21f
commit a12dfbe1d8

View file

@ -69,7 +69,7 @@ static bool CheatAddKey (cheatseq_t *cheat, uint8_t key, bool *eat)
cheat->Pos = cheat->Sequence;
cheat->CurrentArg = 0;
}
if (*cheat->Pos == '#' && (key >= '0' && key <= '9') || key == ' ')
if (*cheat->Pos == '#' && ((key >= '0' && key <= '9') || key == ' '))
{
*eat = true;
cheat->Args[cheat->CurrentArg++] = key == ' ' ? '0' : key;