summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/npcdb.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/npcdb.cpp b/src/resources/npcdb.cpp
index f8e1e2340..f2b3f7d2b 100644
--- a/src/resources/npcdb.cpp
+++ b/src/resources/npcdb.cpp
@@ -95,7 +95,8 @@ void NPCDB::load()
currentInfo->setDeadSortOffsetY(XML::getProperty(npcNode,
"deadSortOffsetY", 31));
- currentInfo->setAvatarId(XML::getProperty(npcNode, "avatar", 0));
+ currentInfo->setAvatarId(static_cast<uint16_t>(XML::getProperty(
+ npcNode, "avatar", 0)));
SpriteDisplay display;
for_each_xml_child_node(spriteNode, npcNode)