diff options
author | Paul Gilbert | 2016-01-31 18:10:58 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-01-31 18:10:58 -0500 |
commit | 73242aa5bc15746572c183b24c77e7fb20c023a0 (patch) | |
tree | 6c769b02fbc1581e190b403d0b1ef9f3ad44bd4e /engines/sherlock | |
parent | e1566c7f4540f346f3cc2593e8159f9553b9e200 (diff) | |
download | scummvm-rg350-73242aa5bc15746572c183b24c77e7fb20c023a0.tar.gz scummvm-rg350-73242aa5bc15746572c183b24c77e7fb20c023a0.tar.bz2 scummvm-rg350-73242aa5bc15746572c183b24c77e7fb20c023a0.zip |
SHERLOCK: SS: Fix incorrect conversation lines display in German version
Diffstat (limited to 'engines/sherlock')
-rw-r--r-- | engines/sherlock/fonts.cpp | 2 | ||||
-rw-r--r-- | engines/sherlock/scalpel/scalpel_talk.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/fonts.cpp b/engines/sherlock/fonts.cpp index 9b58eea17c..431159ca81 100644 --- a/engines/sherlock/fonts.cpp +++ b/engines/sherlock/fonts.cpp @@ -130,7 +130,7 @@ void Fonts::setFont(int fontNum) { // Iterate through the frames to find the widest and tallest font characters _fontHeight = _widestChar = 0; - for (uint idx = 0; idx < _charCount; ++idx) { + for (uint idx = 0; idx < MIN((int)_charCount, 128 - 32); ++idx) { _fontHeight = MAX((uint16)_fontHeight, (*_font)[idx]._frame.h); _widestChar = MAX((uint16)_widestChar, (*_font)[idx]._frame.w); } diff --git a/engines/sherlock/scalpel/scalpel_talk.cpp b/engines/sherlock/scalpel/scalpel_talk.cpp index be2baf9184..b6e9482e3c 100644 --- a/engines/sherlock/scalpel/scalpel_talk.cpp +++ b/engines/sherlock/scalpel/scalpel_talk.cpp @@ -276,7 +276,7 @@ void ScalpelTalk::talkInterface(const byte *&str) { str += idx; // If line wrap occurred, then move to after the separating space between the words - if ((!isOpcode(str[0])) && str[0] != '{') + if (str[0] && (!isOpcode(str[0])) && str[0] != '{') ++str; _yp += 9; |