diff options
Diffstat (limited to 'engines/titanic/true_talk/tt_word.cpp')
-rw-r--r-- | engines/titanic/true_talk/tt_word.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/titanic/true_talk/tt_word.cpp b/engines/titanic/true_talk/tt_word.cpp index 53d4bd8078..b7309b2c63 100644 --- a/engines/titanic/true_talk/tt_word.cpp +++ b/engines/titanic/true_talk/tt_word.cpp @@ -32,6 +32,14 @@ TTword::TTword(TTString &str, int mode, int val2) : _string(str), _status = str.getStatus() == SS_VALID ? SS_VALID : SS_5; } +void TTword::deleteSiblings() { + while (_pNext) { + TTword *next = _pNext; + _pNext = next->_pNext; + delete next; + } +} + int TTword::readSyn(SimpleFile *file) { CString str; int mode, val1; |