From dc143f8819f4ce4c8334811d27766a6d96616603 Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Sun, 21 Dec 2014 23:45:16 -0800 Subject: [PATCH] - few more tiny fixes for msvc compiler warnings --- source/glest_game/types/unit_type.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/glest_game/types/unit_type.cpp b/source/glest_game/types/unit_type.cpp index a96600bf..9191eead 100644 --- a/source/glest_game/types/unit_type.cpp +++ b/source/glest_game/types/unit_type.cpp @@ -652,7 +652,7 @@ void UnitType::loaddd(int id,const string &dir, const TechTree *techTree, if(parametersNode->hasChild("resources-death")) { const XmlNode *deathResourcesNode= parametersNode->getChild("resources-death"); - for(size_t i=0; i < deathResourcesNode->getChildCount(); ++i){ + for(unsigned int i = 0; i < deathResourcesNode->getChildCount(); ++i){ const XmlNode *resourceNode= deathResourcesNode->getChild("resource", i); string name= resourceNode->getAttribute("name")->getRestrictedValue(); @@ -710,7 +710,7 @@ void UnitType::loaddd(int id,const string &dir, const TechTree *techTree, if(parametersNode->hasChild("tags")) { const XmlNode *tagsNode= parametersNode->getChild("tags"); - for(size_t i=0; i < tagsNode->getChildCount(); ++i){ + for(unsigned int i = 0; i < tagsNode->getChildCount(); ++i){ const XmlNode *resourceNode= tagsNode->getChild("tag", i); string tag= resourceNode->getAttribute("value")->getRestrictedValue(); tags.insert(tag);