summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index c58cc4696..8414d93a6 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -2656,6 +2656,14 @@ Gender Being::intToGender(int sex)
}
}
+int Being::getSpriteID(int slot)
+{
+ if (slot < 0 || (unsigned)slot >= mSpriteIDs.size())
+ return -1;
+
+ return mSpriteIDs[slot];
+}
+
BeingEquipBackend::BeingEquipBackend(Being *being):
mBeing(being)
{