diff --git a/source/core/cheathandler.cpp b/source/core/cheathandler.cpp index f06908f0c..11c0633fb 100644 --- a/source/core/cheathandler.cpp +++ b/source/core/cheathandler.cpp @@ -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;