aboutsummaryrefslogtreecommitdiff
path: root/scumm/charset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/charset.cpp')
-rw-r--r--scumm/charset.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/charset.cpp b/scumm/charset.cpp
index da909900a4..8ff53a2b51 100644
--- a/scumm/charset.cpp
+++ b/scumm/charset.cpp
@@ -311,7 +311,7 @@ int CharsetRenderer::getStringWidth(int arg, const byte *text) {
break;
} else if (chr == '@')
continue;
- if (chr == 0xD)
+ if (chr == '\n' || chr == '\r')
break;
if (chr == 254 || chr == 255) {
//process in LE