aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/gui/gui_gfx.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp
index 66d2c28d48..3eb69f0553 100644
--- a/engines/sci/gui/gui_gfx.cpp
+++ b/engines/sci/gui/gui_gfx.cpp
@@ -378,8 +378,9 @@ int16 SciGuiGfx::GetLongest(const char *text, int16 maxWidth, GuiResourceId orgF
if (getSciVersion() >= SCI_VERSION_1_1) {
curCharCount++;
curCharCount += TextCodeProcessing(text, orgFontId, oldPenColor);
+ continue;
}
- continue;
+ break;
case 0xD:
curCharCount++;