summaryrefslogtreecommitdiff
path: root/src/resources/db/homunculusdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-29 16:19:21 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-29 16:19:21 +0300
commit7bdb50605562e47f1d6ae134881c09bd42293be5 (patch)
tree935228722e4eb48f5856abec53be1ec985a0b9d6 /src/resources/db/homunculusdb.cpp
parent0f9ec2061c4ad6157c3186f1cab9c4d8558980b5 (diff)
downloadplus-7bdb50605562e47f1d6ae134881c09bd42293be5.tar.gz
plus-7bdb50605562e47f1d6ae134881c09bd42293be5.tar.bz2
plus-7bdb50605562e47f1d6ae134881c09bd42293be5.tar.xz
plus-7bdb50605562e47f1d6ae134881c09bd42293be5.zip
Add strong typed int type BeingTypeId.
Diffstat (limited to 'src/resources/db/homunculusdb.cpp')
-rw-r--r--src/resources/db/homunculusdb.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/db/homunculusdb.cpp b/src/resources/db/homunculusdb.cpp
index 41c863a6f..697b74431 100644
--- a/src/resources/db/homunculusdb.cpp
+++ b/src/resources/db/homunculusdb.cpp
@@ -85,11 +85,11 @@ void HomunculusDB::loadXmlFile(const std::string &fileName)
const int id = XML::getProperty(homunculusNode, "id", 0);
BeingInfo *currentInfo = nullptr;
- if (mHomunculusInfos.find(fromInt(id + offset, BeingId))
+ if (mHomunculusInfos.find(fromInt(id + offset, BeingTypeId))
!= mHomunculusInfos.end())
{
logger->log("HomunculusDB: Redefinition of homunculus ID %d", id);
- currentInfo = mHomunculusInfos[fromInt(id + offset, BeingId)];
+ currentInfo = mHomunculusInfos[fromInt(id + offset, BeingTypeId)];
}
if (!currentInfo)
currentInfo = new BeingInfo;
@@ -134,7 +134,7 @@ void HomunculusDB::loadXmlFile(const std::string &fileName)
}
currentInfo->setDisplay(display);
- mHomunculusInfos[fromInt(id + offset, BeingId)] = currentInfo;
+ mHomunculusInfos[fromInt(id + offset, BeingTypeId)] = currentInfo;
}
}
@@ -147,7 +147,7 @@ void HomunculusDB::unload()
}
-BeingInfo *HomunculusDB::get(const BeingId id)
+BeingInfo *HomunculusDB::get(const BeingTypeId id)
{
BeingInfoIterator i = mHomunculusInfos.find(id);