aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorathrxx2013-09-02 19:59:59 +0200
committerathrxx2013-09-02 19:59:59 +0200
commit023783907fa21ec3ac38364ae44d55c813617e27 (patch)
treeb9fbd6f6f289ad4848f6a43d1752a25a64496838 /engines
parent18b21c52c3b8c18d20ae7ac1c9b0dfb4b0113e00 (diff)
downloadscummvm-rg350-023783907fa21ec3ac38364ae44d55c813617e27.tar.gz
scummvm-rg350-023783907fa21ec3ac38364ae44d55c813617e27.tar.bz2
scummvm-rg350-023783907fa21ec3ac38364ae44d55c813617e27.zip
LOL: fix bug #3614957 (LOL : Crash when subtitles displayed)
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/text_rpg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/text_rpg.cpp b/engines/kyra/text_rpg.cpp
index a19d678e35..24c523c856 100644
--- a/engines/kyra/text_rpg.cpp
+++ b/engines/kyra/text_rpg.cpp
@@ -129,7 +129,7 @@ void TextDisplayer_rpg::displayText(char *str, ...) {
uint16 charsPerLine = (sd->w << 3) / (_screen->getFontWidth() + _screen->_charWidth);
while (c) {
- char a = tolower(_ctrl[1]);
+ char a = tolower((unsigned char)_ctrl[1]);
if (!_tempString2 && c == '%') {
if (a == 'd') {