diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-05 14:50:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-05 14:50:30 +0300 |
commit | 70fc07029e12a11e7b1943b6a1856f02a8800a39 (patch) | |
tree | 3662905cb7cc81b1fb9561dfd67d18f5599ccd1d /src/being | |
parent | 3f43bdd12b50a2ff3afb687fd3d2101865e946f2 (diff) | |
download | manaplus-70fc07029e12a11e7b1943b6a1856f02a8800a39.tar.gz manaplus-70fc07029e12a11e7b1943b6a1856f02a8800a39.tar.bz2 manaplus-70fc07029e12a11e7b1943b6a1856f02a8800a39.tar.xz manaplus-70fc07029e12a11e7b1943b6a1856f02a8800a39.zip |
Replace in Being some calls getNumberOfLayers to CompountSprite::getNumberOfLayers.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/being.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 319bf34eb..a0add020e 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -2906,7 +2906,7 @@ void Being::drawSprites(Graphics *restrict const graphics, const int posX, const int posY) const restrict2 { - const int sz = getNumberOfLayers(); + const int sz = CompoundSprite::getNumberOfLayers(); for (int f = 0; f < sz; f ++) { const int rSprite = mSpriteHide[mSpriteRemap[f]]; @@ -3431,7 +3431,7 @@ int Being::searchSlotValue(const std::vector<int> &restrict slotRemap, if (slotRemap[slot] == val) return CAST_S32(slot); } - return getNumberOfLayers() - 1; + return CompoundSprite::getNumberOfLayers() - 1; } void Being::searchSlotValueItr(std::vector<int>::iterator &restrict it, |