From 65b96f6a1bf1f4ca8a062f785996306dabbfedf3 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 24 Mar 2009 17:41:46 +0000 Subject: 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 --- engines/sci/engine/scriptdebug.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/sci/engine/scriptdebug.cpp') 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); -- cgit v1.2.3