diff options
author | Paul Gilbert | 2016-05-11 07:32:46 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:39:13 -0400 |
commit | b8a7a98c544eeae453b0b62cffdac7a59f43b737 (patch) | |
tree | b404a84cad2a35c5891a0922400e6007cee8e200 /engines/titanic/true_talk/st_vocab.cpp | |
parent | b8c41050211c6b5c25a9e02a767a54b8e1ef55d7 (diff) | |
download | scummvm-rg350-b8a7a98c544eeae453b0b62cffdac7a59f43b737.tar.gz scummvm-rg350-b8a7a98c544eeae453b0b62cffdac7a59f43b737.tar.bz2 scummvm-rg350-b8a7a98c544eeae453b0b62cffdac7a59f43b737.zip |
TITANIC: Bugfixes for vocab loading
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; |