aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk/tt_vocab.h
diff options
context:
space:
mode:
authorPaul Gilbert2017-10-06 20:37:28 -0400
committerPaul Gilbert2017-10-06 20:37:28 -0400
commit9b51c1dbbd1a4cb894080e73cfde7d84517131ed (patch)
treebb846a1f3c040d22ad5a3264db6d91917231d2eb /engines/titanic/true_talk/tt_vocab.h
parent223867b2f5f2ccb3c5ade26cca5af15b65d3dbbc (diff)
downloadscummvm-rg350-9b51c1dbbd1a4cb894080e73cfde7d84517131ed.tar.gz
scummvm-rg350-9b51c1dbbd1a4cb894080e73cfde7d84517131ed.tar.bz2
scummvm-rg350-9b51c1dbbd1a4cb894080e73cfde7d84517131ed.zip
TITANIC: DE: Fix recognising words with common suffixes
Diffstat (limited to 'engines/titanic/true_talk/tt_vocab.h')
-rw-r--r--engines/titanic/true_talk/tt_vocab.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/true_talk/tt_vocab.h b/engines/titanic/true_talk/tt_vocab.h
index 7e5cc29bc5..def42ba63d 100644
--- a/engines/titanic/true_talk/tt_vocab.h
+++ b/engines/titanic/true_talk/tt_vocab.h
@@ -68,7 +68,7 @@ private:
* @param str Word to check
* @returns New word instance for found match, or nullptr otherwise
*/
- TTword *getSuffixedWord(TTstring &str) const;
+ TTword *getSuffixedWord(TTstring &str, TTword **srcWord = nullptr) const;
/**
* Checks the passed word for common prefixes, and checks for a word
@@ -76,7 +76,7 @@ private:
* @param str Word to check
* @returns New word instance for found match, or nullptr otherwise
*/
- TTword *getPrefixedWord(TTstring &str) const;
+ TTword *getPrefixedWord(TTstring &str, TTword **srcWord = nullptr) const;
public:
TTvocab(VocabMode vocabMode);
~TTvocab();