diff options
-rw-r--r-- | engines/titanic/true_talk/tt_word.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/titanic/true_talk/tt_word.cpp b/engines/titanic/true_talk/tt_word.cpp index 01541de7dc..5ed3e5755f 100644 --- a/engines/titanic/true_talk/tt_word.cpp +++ b/engines/titanic/true_talk/tt_word.cpp @@ -217,8 +217,9 @@ TTstringStatus TTword::getChainStatus() const { } TTword *TTword::copyWords() { + // Replicate the word and all following words it's linked to TTword *result = copy(); - for (TTword *word = result; word; word = word->_nextP) + for (TTword *word = result; word->_nextP; word = word->_nextP) word->_nextP = word->_nextP->copy(); return result; |