aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
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) {