summaryrefslogtreecommitdiff
path: root/src/resources/db/petdb.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/petdb.cpp
parent0f9ec2061c4ad6157c3186f1cab9c4d8558980b5 (diff)
downloadmv-7bdb50605562e47f1d6ae134881c09bd42293be5.tar.gz
mv-7bdb50605562e47f1d6ae134881c09bd42293be5.tar.bz2
mv-7bdb50605562e47f1d6ae134881c09bd42293be5.tar.xz
mv-7bdb50605562e47f1d6ae134881c09bd42293be5.zip
Add strong typed int type BeingTypeId.
Diffstat (limited to 'src/resources/db/petdb.cpp')
-rw-r--r--src/resources/db/petdb.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/db/petdb.cpp b/src/resources/db/petdb.cpp
index 242313d14..f219a6889 100644
--- a/src/resources/db/petdb.cpp
+++ b/src/resources/db/petdb.cpp
@@ -79,9 +79,9 @@ void PETDB::loadXmlFile(const std::string &fileName)
continue;
}
- const BeingId id = fromInt(XML::getProperty(
- petNode, "id", -1), BeingId);
- if (id == BeingId_negOne)
+ const BeingTypeId id = fromInt(XML::getProperty(
+ petNode, "id", -1), BeingTypeId);
+ if (id == BeingTypeId_negOne)
{
logger->log("PET Database: PET with missing ID in %s!",
paths.getStringValue("petsFile").c_str());
@@ -186,7 +186,7 @@ void PETDB::unload()
mLoaded = false;
}
-BeingInfo *PETDB::get(const BeingId id)
+BeingInfo *PETDB::get(const BeingTypeId id)
{
const BeingInfoIterator i = mPETInfos.find(id);