diff options
author | Paul Gilbert | 2016-11-11 15:44:34 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-11-11 15:44:34 -0500 |
commit | 4ad6faecd9ea95a54ca5a700eb382de0ab65797b (patch) | |
tree | 28d108bfb18e91c4e3ffac5244e1502aba9be78c /engines/titanic/true_talk | |
parent | 23af9d1a3cd3a991edb2417d215132c6bba773e7 (diff) | |
download | scummvm-rg350-4ad6faecd9ea95a54ca5a700eb382de0ab65797b.tar.gz scummvm-rg350-4ad6faecd9ea95a54ca5a700eb382de0ab65797b.tar.bz2 scummvm-rg350-4ad6faecd9ea95a54ca5a700eb382de0ab65797b.zip |
TITANIC: Fix NPCs responding to common phrases
Diffstat (limited to 'engines/titanic/true_talk')
-rw-r--r-- | engines/titanic/true_talk/tt_sentence.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |