summaryrefslogtreecommitdiff
path: root/src/beingequipbackend.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-20 20:52:11 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-20 20:52:11 +0300
commitead240c9e3324256f08b14517a9c110ddd112fb9 (patch)
treec28e557879e5b8f12c24d3563bd6d86e25c6a7a8 /src/beingequipbackend.cpp
parent49fb207d7743dcf4257ec678075eaa897d615e84 (diff)
downloadManaVerse-ead240c9e3324256f08b14517a9c110ddd112fb9.tar.gz
ManaVerse-ead240c9e3324256f08b14517a9c110ddd112fb9.tar.bz2
ManaVerse-ead240c9e3324256f08b14517a9c110ddd112fb9.tar.xz
ManaVerse-ead240c9e3324256f08b14517a9c110ddd112fb9.zip
In Being replace mSpriteIDs to mSlots.
Diffstat (limited to 'src/beingequipbackend.cpp')
-rw-r--r--src/beingequipbackend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/beingequipbackend.cpp b/src/beingequipbackend.cpp
index 4cc273ab1..eb05a11fd 100644
--- a/src/beingequipbackend.cpp
+++ b/src/beingequipbackend.cpp
@@ -35,13 +35,13 @@ BeingEquipBackend::BeingEquipBackend(Being *const being)
memset(mEquipment, 0, sizeof(mEquipment));
if (being)
{
- const size_t sz = being->mSpriteIDs.size();
+ const size_t sz = being->mSprites.size();
for (size_t f = 0; f < sz; f ++)
{
const int idx = inventoryHandler->
convertFromServerSlot(CAST_S32(f));
- const int id = being->mSpriteIDs[f];
+ const int id = being->mSlots[f].spriteId;
if (id > 0 && idx >= 0 && idx < EQUIPMENT_SIZE)
{
Item *const item = new Item(id,