summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index de5ecc56e..efbfa35c6 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -48,6 +48,7 @@
#include "net/npchandler.h"
#include "net/playerhandler.h"
+#include "resources/avatardb.h"
#include "resources/emotedb.h"
#include "resources/iteminfo.h"
#include "resources/monsterdb.h"
@@ -251,6 +252,12 @@ void Being::setSubtype(const uint16_t subtype)
mYDiff = mInfo->getSortOffsetY();
}
}
+ else if (mType == AVATAR)
+ {
+ mInfo = AvatarDB::get(mSubType);
+ if (mInfo)
+ setupSpriteDisplay(mInfo->getDisplay(), false);
+ }
else if (mType == PET)
{
mInfo = PETDB::get(mId);