diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-04 21:24:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-04 21:39:07 +0300 |
commit | 2521a791d764920c194e8fe299110e98dc2e5ab3 (patch) | |
tree | 9894d9cabae064e3ab8ab0d43864c152079a750d /src/being/compoundsprite.cpp | |
parent | 9706e377c799d4b2c0a9f88c8ba6768bf2ea858c (diff) | |
download | manaplus-2521a791d764920c194e8fe299110e98dc2e5ab3.tar.gz manaplus-2521a791d764920c194e8fe299110e98dc2e5ab3.tar.bz2 manaplus-2521a791d764920c194e8fe299110e98dc2e5ab3.tar.xz manaplus-2521a791d764920c194e8fe299110e98dc2e5ab3.zip |
Remove getter getSprite from compoundsprite.
Diffstat (limited to 'src/being/compoundsprite.cpp')
-rw-r--r-- | src/being/compoundsprite.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/being/compoundsprite.cpp b/src/being/compoundsprite.cpp index 981125633..220cadea8 100644 --- a/src/being/compoundsprite.cpp +++ b/src/being/compoundsprite.cpp @@ -60,6 +60,8 @@ static const unsigned cache_clean_part = 3; bool CompoundSprite::mEnableDelay = true; CompoundSprite::CompoundSprite() : + Sprite(), + mSprites(), imagesCache(), mCacheItem(nullptr), mImage(nullptr), @@ -68,7 +70,6 @@ CompoundSprite::CompoundSprite() : mOffsetY(0), mStartTime(0), mLastTime(0), - mSprites(), #ifndef USE_SDL2 mNextRedrawTime(0), #endif @@ -317,7 +318,7 @@ unsigned int CompoundSprite::getCurrentFrame(unsigned int layer) const if (layer >= CAST_U32(mSprites.size())) return 0; - const Sprite *const s = getSprite(layer); + const Sprite *const s = mSprites[layer]; if (s) return s->getCurrentFrame(); @@ -332,7 +333,7 @@ unsigned int CompoundSprite::getFrameCount(unsigned int layer) if (layer >= CAST_U32(mSprites.size())) return 0; - const Sprite *const s = getSprite(layer); + const Sprite *const s = mSprites[layer]; if (s) return s->getFrameCount(); |