diff options
-rw-r--r-- | saga/animation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/saga/animation.cpp b/saga/animation.cpp index d8230ee885..7194975ab2 100644 --- a/saga/animation.cpp +++ b/saga/animation.cpp @@ -108,13 +108,13 @@ void Anim::playCutaway(int cut, bool fade) { _vm->decodeBGImage(resourceData, resourceDataLength, &buf, &buflen, &width, &height); - PalEntry *palette = (PalEntry *)_vm->getImagePal(resourceData, resourceDataLength); + const PalEntry *palette = (const PalEntry *)_vm->getImagePal(resourceData, resourceDataLength); Surface *bgSurface = _vm->_render->getBackGroundSurface(); const Rect rect(width, height); bgSurface->blit(rect, buf); - _vm->_gfx->setPalette(palette); + _vm->_gfx->setPalette(const_cast<PalEntry *>(palette)); free(buf); free(resourceData); |