From e1ef6c9e9d7106e75415f8ba7cd78552ef229512 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 20 Apr 2008 11:59:22 +0000 Subject: Fixed bug in getCharLength. svn-id: r31594 --- engines/kyra/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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); -- cgit v1.2.3