aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2017-07-18 22:30:09 -0400
committerPaul Gilbert2017-07-18 22:30:09 -0400
commitcbd807221ec6079a40ce2c0e0d8d82ae569ff4d0 (patch)
tree89c1109f1c05e2b85f49189245b8e6bc80924b45 /engines/titanic
parent3525d5d4c9d7a329725172e5860b9ea2c0dde085 (diff)
downloadscummvm-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.cpp4
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) {