From 4ad6faecd9ea95a54ca5a700eb382de0ab65797b Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 11 Nov 2016 15:44:34 -0500 Subject: TITANIC: Fix NPCs responding to common phrases --- engines/titanic/true_talk/tt_sentence.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/titanic/true_talk/tt_sentence.cpp b/engines/titanic/true_talk/tt_sentence.cpp index 6bd7e091c2..451582383d 100644 --- a/engines/titanic/true_talk/tt_sentence.cpp +++ b/engines/titanic/true_talk/tt_sentence.cpp @@ -109,10 +109,10 @@ int TTsentence::storeVocabHit(TTword *word) { bool TTsentence::fn1(const CString &str, int wordId1, const CString &str1, const CString &str2, const CString &str3, int wordId2, int val1, int val2, const TTconceptNode *node) const { - if (node) + if (!node) node = &_sentenceConcept; - if (!node && !node) + if (!node) return false; if (val1 && !is18(val1, node)) return false; -- cgit v1.2.3