diff options
-rw-r--r-- | gui/walkthrough.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/walkthrough.cpp b/gui/walkthrough.cpp index b3a7de5eac..e54add5584 100644 --- a/gui/walkthrough.cpp +++ b/gui/walkthrough.cpp @@ -51,7 +51,7 @@ static int getNextWordLength(byte *src, int maxLength) { for (l = 0; l < maxLength; l++) { byte tmp = src[l]; - if ((tmp >= 0) && (tmp <= ' ')) + if (tmp <= ' ') break; } @@ -84,7 +84,7 @@ bool WalkthroughDialog::loadWalkthroughText() { int wordLength = getNextWordLength(currentBuffer, _lineWidth); if (((currentLinePos + wordLength) < _lineWidth) && ((*currentBuffer != 0x0a) && (*currentBuffer != 0x0d))) { - if ((*currentBuffer >= 0) && (*currentBuffer <= ' ')) { + if (*currentBuffer <= ' ') { lineBuffer[currentLinePos++] = ' '; currentBuffer++; } else { |