aboutsummaryrefslogtreecommitdiff
path: root/saga/animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/animation.cpp')
-rw-r--r--saga/animation.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/saga/animation.cpp b/saga/animation.cpp
index 7194975ab2..a5f6e9bd68 100644
--- a/saga/animation.cpp
+++ b/saga/animation.cpp
@@ -114,7 +114,7 @@ void Anim::playCutaway(int cut, bool fade) {
const Rect rect(width, height);
bgSurface->blit(rect, buf);
- _vm->_gfx->setPalette(const_cast<PalEntry *>(palette));
+ _vm->_gfx->setPalette(palette);
free(buf);
free(resourceData);
@@ -215,7 +215,6 @@ void Anim::load(uint16 animId, const byte *animResourceData, size_t animResource
}
anim->start += temp;
-
// Cache frame offsets
anim->frameOffsets = (size_t *)malloc((anim->maxFrame + 1) * sizeof(*anim->frameOffsets));
if (anim->frameOffsets == NULL) {