diff options
author | Paul Gilbert | 2017-06-22 19:06:58 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-06-22 19:06:58 -0400 |
commit | ef52dc283fe98255df1b88d8354bd49eb31ab378 (patch) | |
tree | e18285240ec5f90855350367cdcb268d2ddc5f4b /engines/titanic | |
parent | 007776ba16ad34320d6665ad646b64aa46615bf3 (diff) | |
download | scummvm-rg350-ef52dc283fe98255df1b88d8354bd49eb31ab378.tar.gz scummvm-rg350-ef52dc283fe98255df1b88d8354bd49eb31ab378.tar.bz2 scummvm-rg350-ef52dc283fe98255df1b88d8354bd49eb31ab378.zip |
TITANIC: Fix German strings array size in getSuffixedWord
Diffstat (limited to 'engines/titanic')
-rw-r--r-- | engines/titanic/true_talk/tt_vocab.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/true_talk/tt_vocab.cpp b/engines/titanic/true_talk/tt_vocab.cpp index 4ec7354534..97a1cbb90a 100644 --- a/engines/titanic/true_talk/tt_vocab.cpp +++ b/engines/titanic/true_talk/tt_vocab.cpp @@ -233,12 +233,12 @@ TTword *TTvocab::getSuffixedWord(TTstring &str) const { TTword *word = nullptr;
if (g_vm->isGerman()) {
- static const char *const SUFFIXES[13] = {
+ static const char *const SUFFIXES[11] = {
"est", "em", "en", "er", "es", "et", "st",
"s", "e", "n", "t"
};
- for (int idx = 0; idx < 13; ++idx) {
+ for (int idx = 0; idx < 11; ++idx) {
if (tempStr.hasSuffix(SUFFIXES[idx])) {
tempStr.deleteSuffix(strlen(SUFFIXES[idx]));
word = getPrimeWord(tempStr);
|