From a12dfbe1d8ceff283e3e788f4bcc03970dd4e1f8 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 25 Jul 2021 17:17:29 +0200 Subject: [PATCH] - fixed bad operator grouping in cheat code. --- source/core/cheathandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;