aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/kyra/text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/text.cpp b/engines/kyra/text.cpp
index 60ae3b2854..eb6df65304 100644
--- a/engines/kyra/text.cpp
+++ b/engines/kyra/text.cpp
@@ -77,7 +77,7 @@ int TextDisplayer::getCharLength(const char *str, int len) {
c = READ_LE_UINT16(str - 1);
++str;
}
- i += _screen->getCharWidth(*str++);
+ i += _screen->getCharWidth(c);
++charsCount;
}
_screen->setFont(curFont);