diff options
author | Paul Gilbert | 2014-03-08 08:44:01 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-03-08 08:44:01 -0500 |
commit | 8d3857c0536e47a6a03497346424c111b5bebd7b (patch) | |
tree | 28e6c41b68dbffb1ca48d7d7b8748eb6e96d4d7f /engines/mads/animation.cpp | |
parent | 80bba746406743ab7a7ae6c163c79c652f6d7624 (diff) | |
download | scummvm-rg350-8d3857c0536e47a6a03497346424c111b5bebd7b.tar.gz scummvm-rg350-8d3857c0536e47a6a03497346424c111b5bebd7b.tar.bz2 scummvm-rg350-8d3857c0536e47a6a03497346424c111b5bebd7b.zip |
MADS: Cleanup code for accessing sprite assets
Diffstat (limited to 'engines/mads/animation.cpp')
-rw-r--r-- | engines/mads/animation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/mads/animation.cpp b/engines/mads/animation.cpp index 588e4eaf36..3508631690 100644 --- a/engines/mads/animation.cpp +++ b/engines/mads/animation.cpp @@ -332,8 +332,8 @@ void Animation::loadFrame(int frameNumber) { return; Common::Point pt; - int listIndex = _spriteListIndexes[_header._spritesIndex]; - SpriteAsset &spriteSet = scene._spriteSlots.getSprite(listIndex); + int spriteListIndex = _spriteListIndexes[_header._spritesIndex]; + SpriteAsset &spriteSet = *scene._sprites[spriteListIndex]; if (_unkIndex < 0) { MSurface *frame = spriteSet.getFrame(0); @@ -480,8 +480,8 @@ void Animation::update() { slot.copy(_frameEntries[_oldFrameEntry]._spriteSlot); slot._seqIndex = _frameEntries[_oldFrameEntry]._seqIndex + 0x80; - SpriteAsset &spriteSet = scene._spriteSlots.getSprite( - scene._spriteSlots[slotIndex]._spritesIndex); + SpriteAsset &spriteSet = *scene._sprites[ + scene._spriteSlots[slotIndex]._spritesIndex]; slot._spriteType = spriteSet.isBackground() ? ST_BACKGROUND : ST_FOREGROUND; } break; |