diff options
Diffstat (limited to 'src/game-server/attributemanager.cpp')
-rw-r--r-- | src/game-server/attributemanager.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/game-server/attributemanager.cpp b/src/game-server/attributemanager.cpp index d590a951..d6cdeae1 100644 --- a/src/game-server/attributemanager.cpp +++ b/src/game-server/attributemanager.cpp @@ -79,11 +79,14 @@ void AttributeManager::reload() if (xmlStrEqual(subnode->name, BAD_CAST "modifier")) { std::string sType = utils::toUpper( - XML::getProperty(subnode, "stacktype", "")); + XML::getProperty(subnode, "stacktype", + std::string())); std::string eType = utils::toUpper( - XML::getProperty(subnode, "modtype", "")); + XML::getProperty(subnode, "modtype", + std::string())); std::string tag = utils::toUpper( - XML::getProperty(subnode, "tag", "")); + XML::getProperty(subnode, "tag", + std::string())); AT_TY pSType; AME_TY pEType; if (!sType.empty()) @@ -124,7 +127,7 @@ void AttributeManager::reload() mAttributeMap[id].second.push_back( AttributeInfoType(pSType, pEType)); std::string tag = XML::getProperty( - subnode, "tag", ""); + subnode, "tag", std::string()); if (!tag.empty()) mTagMap.insert( |