summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-05 00:31:23 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-05 00:31:23 +0300
commit21b14e4b8708be1d9b804f61330ef7cd5521397d (patch)
tree798bfa72c765361c169e4869f56365c2ff3f04a8
parent9688b5ea674e17e1ba093f36a5be4d00a15f47b8 (diff)
downloadmanaplus-21b14e4b8708be1d9b804f61330ef7cd5521397d.tar.gz
manaplus-21b14e4b8708be1d9b804f61330ef7cd5521397d.tar.bz2
manaplus-21b14e4b8708be1d9b804f61330ef7cd5521397d.tar.xz
manaplus-21b14e4b8708be1d9b804f61330ef7cd5521397d.zip
Remove getter getSpritesCount from Being.
-rw-r--r--src/actormanager.cpp2
-rw-r--r--src/being/being.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index b85c4fa17..d022e6127 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -1982,7 +1982,7 @@ Being *ActorManager::cloneBeing(const Being *const srcBeing,
srcBeing->getTileY() + dy);
dstBeing->setName(srcBeing->getName());
dstBeing->setDirection(srcBeing->getDirection());
- const int sz = CAST_S32(srcBeing->getSpritesCount());
+ const int sz = CAST_S32(srcBeing->mSprites.size());
for (int slot = 0; slot < sz; slot ++)
{
const int spriteId = srcBeing->getSpriteID(slot);
diff --git a/src/being/being.h b/src/being/being.h
index 17286026a..2f03bd877 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -303,9 +303,6 @@ class Being notfinal : public ActorSprite,
Party *getParty() const restrict2 noexcept A_WARN_UNUSED
{ return mParty; }
- size_t getSpritesCount() const restrict2 A_WARN_UNUSED
- { return mSprites.size(); }
-
/**
* Sets visible equipments for this being.
*/