diff options
author | Paul Gilbert | 2017-07-18 22:30:09 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-07-18 22:30:09 -0400 |
commit | cbd807221ec6079a40ce2c0e0d8d82ae569ff4d0 (patch) | |
tree | 89c1109f1c05e2b85f49189245b8e6bc80924b45 /engines/titanic | |
parent | 3525d5d4c9d7a329725172e5860b9ea2c0dde085 (diff) | |
download | scummvm-rg350-cbd807221ec6079a40ce2c0e0d8d82ae569ff4d0.tar.gz scummvm-rg350-cbd807221ec6079a40ce2c0e0d8d82ae569ff4d0.tar.bz2 scummvm-rg350-cbd807221ec6079a40ce2c0e0d8d82ae569ff4d0.zip |
TITANIC: DeskbotScript::searchQuotes is meant to have a result array
Diffstat (limited to 'engines/titanic')
-rw-r--r-- | engines/titanic/true_talk/deskbot_script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/true_talk/deskbot_script.cpp b/engines/titanic/true_talk/deskbot_script.cpp index d38d53a296..6aa8ffd10a 100644 --- a/engines/titanic/true_talk/deskbot_script.cpp +++ b/engines/titanic/true_talk/deskbot_script.cpp @@ -1452,9 +1452,9 @@ int DeskbotScript::preprocess(const TTroomScript *roomScript, const TTsentence * } int DeskbotScript::searchQuotes(const TTroomScript *roomScript, const TTsentence *sentence) { - TTtreeResult treeResult; + TTtreeResult treeResult[32]; return g_vm->_trueTalkManager->_quotesTree.search(sentence->_normalizedLine.c_str(), - TREE_2, &treeResult, 0, 0) != -1; + TREE_2, &treeResult[0], 0, 0) != -1; } int DeskbotScript::checkCommonWords(const TTsentence *sentence) { |