diff options
Diffstat (limited to 'engines/m4/animation.cpp')
-rw-r--r-- | engines/m4/animation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/m4/animation.cpp b/engines/m4/animation.cpp index 4b063241fc..53d00cb5c0 100644 --- a/engines/m4/animation.cpp +++ b/engines/m4/animation.cpp @@ -176,7 +176,7 @@ bool Animation::updateAnim() { M4Sprite *spr = _spriteSeries->getFrame(seriesFrameIndex); // FIXME: We assume that the transparent color is the color of the top left pixel - byte *transparentColor = (byte *)spr->pixels; + byte *transparentColor = spr->getBasePtr(0, 0); // FIXME: correct x, y spr->copyTo(bg, frame->x, frame->y, (int)*transparentColor); |