diff options
Diffstat (limited to 'engines/titanic/true_talk/st_vocab.cpp')
-rw-r--r-- | engines/titanic/true_talk/st_vocab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/true_talk/st_vocab.cpp b/engines/titanic/true_talk/st_vocab.cpp index 5135f6466e..a4f5cd851d 100644 --- a/engines/titanic/true_talk/st_vocab.cpp +++ b/engines/titanic/true_talk/st_vocab.cpp @@ -145,7 +145,7 @@ TTword *STVocab::findWord(const TTString &str) { bool flag = false; TTword *word = _pHead; - while (!flag) { + while (word && !flag) { if (_field18 != 3 || strcmp(word->c_str(), str)) { if (word->scanCopy(str, tempNode, _field18)) word = word->_pNext; |