From b8a7a98c544eeae453b0b62cffdac7a59f43b737 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 11 May 2016 07:32:46 -0400 Subject: TITANIC: Bugfixes for vocab loading --- engines/titanic/true_talk/st_vocab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/titanic/true_talk/st_vocab.cpp') 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; -- cgit v1.2.3