diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-29 16:19:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-29 16:19:21 +0300 |
commit | 7bdb50605562e47f1d6ae134881c09bd42293be5 (patch) | |
tree | 935228722e4eb48f5856abec53be1ec985a0b9d6 /src/resources/db/avatardb.cpp | |
parent | 0f9ec2061c4ad6157c3186f1cab9c4d8558980b5 (diff) | |
download | manaplus-7bdb50605562e47f1d6ae134881c09bd42293be5.tar.gz manaplus-7bdb50605562e47f1d6ae134881c09bd42293be5.tar.bz2 manaplus-7bdb50605562e47f1d6ae134881c09bd42293be5.tar.xz manaplus-7bdb50605562e47f1d6ae134881c09bd42293be5.zip |
Add strong typed int type BeingTypeId.
Diffstat (limited to 'src/resources/db/avatardb.cpp')
-rw-r--r-- | src/resources/db/avatardb.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/db/avatardb.cpp b/src/resources/db/avatardb.cpp index 5f1ac6da7..358cfea48 100644 --- a/src/resources/db/avatardb.cpp +++ b/src/resources/db/avatardb.cpp @@ -76,8 +76,8 @@ void AvatarDB::loadXmlFile(const std::string &fileName) if (!xmlNameEqual(avatarNode, "avatar")) continue; - const BeingId id = fromInt(XML::getProperty( - avatarNode, "id", 0), BeingId); + const BeingTypeId id = fromInt(XML::getProperty( + avatarNode, "id", 0), BeingTypeId); BeingInfo *currentInfo = nullptr; if (mAvatarInfos.find(id) != mAvatarInfos.end()) currentInfo = mAvatarInfos[id]; @@ -132,7 +132,7 @@ void AvatarDB::unload() mLoaded = false; } -BeingInfo *AvatarDB::get(const BeingId id) +BeingInfo *AvatarDB::get(const BeingTypeId id) { BeingInfoIterator i = mAvatarInfos.find(id); if (i == mAvatarInfos.end()) |