summaryrefslogtreecommitdiff
path: root/src/resources/npcdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-01 22:19:21 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-01 22:19:21 +0300
commit869c7fe8852248f03849c930c894d8fa218631b5 (patch)
treef86356b6565f68ebd8ba8f6b69ea3a6b5e87b251 /src/resources/npcdb.cpp
parentf659dfb18c130896f5c51fffca7fbe79f6eba502 (diff)
downloadmanaplus-869c7fe8852248f03849c930c894d8fa218631b5.tar.gz
manaplus-869c7fe8852248f03849c930c894d8fa218631b5.tar.bz2
manaplus-869c7fe8852248f03849c930c894d8fa218631b5.tar.xz
manaplus-869c7fe8852248f03849c930c894d8fa218631b5.zip
Fix code style.
Diffstat (limited to 'src/resources/npcdb.cpp')
-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)