mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
- few more tiny fixes for msvc compiler warnings
This commit is contained in:
parent
56214c6228
commit
dc143f8819
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user