From 7bdb50605562e47f1d6ae134881c09bd42293be5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 May 2015 16:19:21 +0300 Subject: Add strong typed int type BeingTypeId. --- src/resources/db/petdb.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/resources/db/petdb.cpp') 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); -- cgit v1.2.3-70-g09d2