- bugfix for save / restore game (spelling mistake)

- vc++ warning fixes
This commit is contained in:
Mark Vejvoda
2013-11-04 19:16:28 +00:00
parent c6b42e4bf6
commit b190968e6b
2 changed files with 11 additions and 5 deletions

View File

@@ -780,7 +780,7 @@ bool XmlNode::hasChildNoSuper(const string &childName) const {
return false;
}
XmlNode * XmlNode::getChildWithAliases(vector<string> childNameList, unsigned int childIndex) const {
for(int aliasIndex = 0; aliasIndex < childNameList.size(); ++aliasIndex) {
for(int aliasIndex = 0; aliasIndex < (int)childNameList.size(); ++aliasIndex) {
const string &childName = childNameList[aliasIndex];
if(superNode && hasChildNoSuper(childName) == false) {
return superNode->getChild(childName,childIndex);
@@ -826,7 +826,7 @@ bool XmlNode::hasChild(const string &childName) const {
bool XmlNode::hasChildWithAliases(vector<string> childNameList) const {
bool result = false;
for(int aliasIndex = 0; aliasIndex < childNameList.size(); ++aliasIndex) {
for(int aliasIndex = 0; aliasIndex < (int)childNameList.size(); ++aliasIndex) {
const string &childName = childNameList[aliasIndex];
result = hasChild(childName);
if(result == true) {