aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
diff options
context:
space:
mode:
authorMartin Gerhardy2018-09-13 21:36:08 +0200
committerDavid Turner2018-09-13 20:57:13 +0100
commit5b9531f00eeec46e8989217b7560b4c524f75de0 (patch)
tree9d5320214bd9b6201ac6827aa1fdcdbe1c3af52a /engines/sword2
parentbe71f5b990b3c7e41f1677429e12e4189ccfbe5f (diff)
downloadscummvm-rg350-5b9531f00eeec46e8989217b7560b4c524f75de0.tar.gz
scummvm-rg350-5b9531f00eeec46e8989217b7560b4c524f75de0.tar.bz2
scummvm-rg350-5b9531f00eeec46e8989217b7560b4c524f75de0.zip
SWORD2: fixed compiler warning with gcc 8.2
engines/sword2/screen.cpp: In member function ‘void Sword2::Screen::rollCredits()’: engines/sword2/screen.cpp:1121:102: warning: cast from type ‘const char*’ to type ‘byte*’ {aka ‘unsigned char*’} casts away qualifiers [-Wcast-qual] creditsLines[i]->sprite = _vm->_fontRenderer->makeTextSprite((byte *)creditsLines[i]->str.c_str(), 600, 14, _vm->_speechFontId, 0);
Diffstat (limited to 'engines/sword2')
-rw-r--r--engines/sword2/screen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword2/screen.cpp b/engines/sword2/screen.cpp
index f3363df45f..fd8dca54f4 100644
--- a/engines/sword2/screen.cpp
+++ b/engines/sword2/screen.cpp
@@ -1118,7 +1118,7 @@ void Screen::rollCredits() {
} else if (creditsLines[i]->top < scrollPos + 400) {
if (!creditsLines[i]->sprite) {
debug(2, "Creating line %d: '%s'", i, creditsLines[i]->str.c_str());
- creditsLines[i]->sprite = _vm->_fontRenderer->makeTextSprite((byte *)creditsLines[i]->str.c_str(), 600, 14, _vm->_speechFontId, 0);
+ creditsLines[i]->sprite = _vm->_fontRenderer->makeTextSprite((const byte *)creditsLines[i]->str.c_str(), 600, 14, _vm->_speechFontId, 0);
}
FrameHeader frame;