diff options
author | Max Horn | 2009-03-24 17:41:46 +0000 |
---|---|---|
committer | Max Horn | 2009-03-24 17:41:46 +0000 |
commit | 65b96f6a1bf1f4ca8a062f785996306dabbfedf3 (patch) | |
tree | 4939957bec85362a8070a1225f47c9f3c2d2f84b /engines/sci/engine/scriptdebug.cpp | |
parent | d38590e6d4053939390ae5a853397f9574d9982e (diff) | |
download | scummvm-rg350-65b96f6a1bf1f4ca8a062f785996306dabbfedf3.tar.gz scummvm-rg350-65b96f6a1bf1f4ca8a062f785996306dabbfedf3.tar.bz2 scummvm-rg350-65b96f6a1bf1f4ca8a062f785996306dabbfedf3.zip |
SCI: Changed vocab_tokenize_string to not 'return' the list it generates, but rather pass a reference to an existing list to it (this is a bit more efficient, and allows us to return an error value)
svn-id: r39670
Diffstat (limited to 'engines/sci/engine/scriptdebug.cpp')
-rw-r--r-- | engines/sci/engine/scriptdebug.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index 35fc41fb31..1117d2aca2 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -1032,9 +1032,9 @@ int c_parse(EngineState *s) { string = cmd_params[0].str; sciprintf("Parsing '%s'\n", string); - words = vocab_tokenize_string(string, s->parser_words, s->parser_words_nr, - s->_parserSuffixes, &error); - if (!words.empty()) { + int res = vocab_tokenize_string(words, string, s->parser_words, s->parser_words_nr, + s->_parserSuffixes, &error); + if (res == 0&& !words.empty()) { int syntax_fail = 0; vocab_synonymize_tokens(words, s->_synonyms); |