From a27d49a43ccc699751b049e0631209c214ef71de Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 11 May 2016 13:33:42 -0400 Subject: TITANIC: Fix finding existing words in STVocab findWord --- engines/titanic/true_talk/st_vocab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/titanic') diff --git a/engines/titanic/true_talk/st_vocab.cpp b/engines/titanic/true_talk/st_vocab.cpp index a4f5cd851d..138af06854 100644 --- a/engines/titanic/true_talk/st_vocab.cpp +++ b/engines/titanic/true_talk/st_vocab.cpp @@ -148,9 +148,9 @@ TTword *STVocab::findWord(const TTString &str) { while (word && !flag) { if (_field18 != 3 || strcmp(word->c_str(), str)) { if (word->scanCopy(str, tempNode, _field18)) - word = word->_pNext; - else flag = true; + else + word = word->_pNext; } else { flag = true; } -- cgit v1.2.3