Skip to content

Commit

Permalink
WINTERMUTE: Fix const away cast warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schickel committed Jan 9, 2013
1 parent 0d934df commit 4a7ddc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/wintermute/base/font/base_font_truetype.cpp
Expand Up @@ -162,7 +162,7 @@ void BaseFontTT::drawText(const byte *text, int x, int y, int width, TTextAlign
// HACK: J.U.L.I.A. uses CP1252, we need to fix that,
// And we still don't have any UTF8-support.
if (_gameRef->_textEncoding != TEXT_UTF8) {
textStr = StringUtil::ansiToWide((char *)text);
textStr = StringUtil::ansiToWide((const char *)text);
}

if (maxLength >= 0 && textStr.size() > (uint32)maxLength) {
Expand Down

0 comments on commit 4a7ddc6

Please sign in to comment.