aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorJoost Peters2009-03-24 19:56:41 +0000
committerJoost Peters2009-03-24 19:56:41 +0000
commitfc9e5b6beb919ca248075536b80cce5c7972f237 (patch)
treedd4fe0246326a6aadaa05a2139a026022133ed3d /engines/sci
parent86e54ffa58e9ce86971c05788249b59f18ed4236 (diff)
downloadscummvm-rg350-fc9e5b6beb919ca248075536b80cce5c7972f237.tar.gz
scummvm-rg350-fc9e5b6beb919ca248075536b80cce5c7972f237.tar.bz2
scummvm-rg350-fc9e5b6beb919ca248075536b80cce5c7972f237.zip
Fix smaller error introduced in r39671 refactoring (this check used to be "res == 0").
Thanks to syke for spotting it. svn-id: r39673
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kstring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kstring.cpp b/engines/sci/engine/kstring.cpp
index 61c7ee6d47..47488fc357 100644
--- a/engines/sci/engine/kstring.cpp
+++ b/engines/sci/engine/kstring.cpp
@@ -256,7 +256,7 @@ reg_t kParse(EngineState *s, int funct_nr, int argc, reg_t *argv) {
bool res = vocab_tokenize_string(words, string, s->_parserWords, s->_parserSuffixes, &error);
s->parser_valid = 0; /* not valid */
- if (res && !words.empty()) {
+ if (!res && !words.empty()) {
int syntax_fail = 0;