aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/true_talk')
-rw-r--r--engines/titanic/true_talk/st_vocab.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}