diff options
author | Johannes Schickel | 2008-04-20 11:59:22 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-04-20 11:59:22 +0000 |
commit | e1ef6c9e9d7106e75415f8ba7cd78552ef229512 (patch) | |
tree | bbb557bfebb82c1af5707c5b5f53af6c7b56503c /engines | |
parent | 01bbe8cb6c44d5e735fb893d9e783b5a2f7055ec (diff) | |
download | scummvm-rg350-e1ef6c9e9d7106e75415f8ba7cd78552ef229512.tar.gz scummvm-rg350-e1ef6c9e9d7106e75415f8ba7cd78552ef229512.tar.bz2 scummvm-rg350-e1ef6c9e9d7106e75415f8ba7cd78552ef229512.zip |
Fixed bug in getCharLength.
svn-id: r31594
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/text.cpp | 2 |
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); |