aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/graphics/text16.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/text16.cpp b/engines/sci/graphics/text16.cpp
index cce34ae6b2..e320f0e7f7 100644
--- a/engines/sci/graphics/text16.cpp
+++ b/engines/sci/graphics/text16.cpp
@@ -179,9 +179,9 @@ int16 GfxText16::GetLongest(const char *text, int16 maxWidth, GuiResourceId orgF
break;
case 0xD:
- curCharCount++;
- continue;
-
+ // Check, if 0xA is following, if so include it as well
+ if ((*(unsigned char *)text) == 0xA)
+ curCharCount++;
case 0xA:
curCharCount++;
case 0: