summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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.
*/