From c4ca0a7de29ab32d35e72ae88ed399b377a3c2c7 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 2 Nov 2014 02:16:00 +0100 Subject: SCI: fix bug in text16 / GetLongest() --- engines/sci/graphics/text16.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/sci/graphics') 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 -- cgit v1.2.3