aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/font.cpp')
-rw-r--r--engines/mads/font.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/font.cpp b/engines/mads/font.cpp
index 9da46c30b1..e97cc95fdf 100644
--- a/engines/mads/font.cpp
+++ b/engines/mads/font.cpp
@@ -112,14 +112,14 @@ int Font::write(MSurface *surface, const Common::String &msg, const Common::Poin
const char *text = msg.c_str();
while (*text) {
char theChar = (*text++) & 0x7F;
- int charWidth = _charWidths[theChar];
+ int charWidth = _charWidths[(byte)theChar];
if (charWidth > 0) {
if (xPos + charWidth >= width)
return xPos;
- uint8 *charData = &_charData[_charOffs[theChar]];
+ uint8 *charData = &_charData[_charOffs[(byte)theChar]];
int bpp = getBpp(charWidth);
if (skipY != 0)