diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-12 13:35:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-12 13:35:32 +0300 |
commit | dbf80cecba66c3171ccebb6c22d85c3b52637882 (patch) | |
tree | 18757d1b8237c4f5e5580fe9de5b67d4b011ac25 /src/resources/db | |
parent | 18ba68228c2a8bce02a7bce1569be9998570d5f2 (diff) | |
download | manaverse-dbf80cecba66c3171ccebb6c22d85c3b52637882.tar.gz manaverse-dbf80cecba66c3171ccebb6c22d85c3b52637882.tar.bz2 manaverse-dbf80cecba66c3171ccebb6c22d85c3b52637882.tar.xz manaverse-dbf80cecba66c3171ccebb6c22d85c3b52637882.zip |
fix compilation warnings.
Diffstat (limited to 'src/resources/db')
-rw-r--r-- | src/resources/db/colordb.cpp | 4 | ||||
-rw-r--r-- | src/resources/db/monsterdb.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/db/colordb.cpp b/src/resources/db/colordb.cpp index 06dff0d3a..e4d5b83a0 100644 --- a/src/resources/db/colordb.cpp +++ b/src/resources/db/colordb.cpp @@ -54,8 +54,8 @@ void ColorDB::load() StringVect list; BeingCommon::getIncludeFiles(paths.getStringValue( "hairColorPatchDir"), list); - FOR_EACH (StringVectCIter, it, list) - loadHair(*it, colors); + FOR_EACH (StringVectCIter, it2, list) + loadHair(*it2, colors); mColorLists["hair"] = colors; diff --git a/src/resources/db/monsterdb.cpp b/src/resources/db/monsterdb.cpp index 1fc767a2b..9b9112f0f 100644 --- a/src/resources/db/monsterdb.cpp +++ b/src/resources/db/monsterdb.cpp @@ -208,7 +208,7 @@ void MonsterDB::loadXmlFile(const std::string &fileName) } else if (xmlNameEqual(spriteNode, "attack")) { - const int id = XML::getProperty(spriteNode, "id", 0); + const int attackId = XML::getProperty(spriteNode, "id", 0); const int effectId = XML::getProperty( spriteNode, "effect-id", paths.getIntValue("effectId")); const int hitEffectId = XML::getProperty(spriteNode, @@ -229,7 +229,7 @@ void MonsterDB::loadXmlFile(const std::string &fileName) const std::string missileParticle = XML::getProperty( spriteNode, "missile-particle", ""); - currentInfo->addAttack(id, spriteAction, skySpriteAction, + currentInfo->addAttack(attackId, spriteAction, skySpriteAction, waterSpriteAction, effectId, hitEffectId, criticalHitEffectId, missEffectId, missileParticle); } |