aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/parallaction/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/parallaction/parser.cpp b/engines/parallaction/parser.cpp
index 296da579db..f4d5df99ab 100644
--- a/engines/parallaction/parser.cpp
+++ b/engines/parallaction/parser.cpp
@@ -201,7 +201,7 @@ uint16 Script::readLineToken(bool errorOnEOF) {
}
clearTokens();
- while (strlen(line) > 0 && _numTokens < MAX_TOKENS) {
+ while (*line && _numTokens < MAX_TOKENS) {
line = parseNextToken(line, _tokens[_numTokens], MAX_TOKEN_LEN, " ");
line = Common::ltrim(line);
_numTokens++;