From 2854ddbc809c01306761294be7851342808f6995 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 27 Sep 2005 17:38:35 +0000 Subject: Used Willem Jan's suggestion for making the ugliness go away. svn-id: r18889 --- saga/animation.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'saga/animation.cpp') 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(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) { -- cgit v1.2.3