aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2014-11-02 02:16:00 +0100
committerMartin Kiewitz2014-11-02 02:16:00 +0100
commitc4ca0a7de29ab32d35e72ae88ed399b377a3c2c7 (patch)
treec91422b039cc0600b830e625b7f628ab5b16aab9
parentc9e74d6d54bf59b3587eea0785ce31df5d46615b (diff)
downloadscummvm-rg350-c4ca0a7de29ab32d35e72ae88ed399b377a3c2c7.tar.gz
scummvm-rg350-c4ca0a7de29ab32d35e72ae88ed399b377a3c2c7.tar.bz2
scummvm-rg350-c4ca0a7de29ab32d35e72ae88ed399b377a3c2c7.zip
SCI: fix bug in text16 / GetLongest()
-rw-r--r--engines/sci/graphics/text16.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/graphics/text16.cpp b/engines/sci/graphics/text16.cpp
index 66cff422ae..37d786a849 100644
--- a/engines/sci/graphics/text16.cpp
+++ b/engines/sci/graphics/text16.cpp
@@ -196,8 +196,9 @@ int16 GfxText16::GetLongest(const char *&textPtr, int16 maxWidth, GuiResourceId
// Sierra did it the same way.
case 0xD:
// Check, if 0xA is following, if so include it as well
- if ((*(const byte *)textPtr + 1) == 0xA)
+ if ((*(const byte *)textPtr + 1) == 0xA) {
curCharCount++; textPtr++;
+ }
// it's meant to pass through here
case 0xA:
case 0x9781: // this one is used by SQ4/japanese as line break as well