Browse Source

Merge branch 'master' of https://github.com/okamstudio/godot

Juan Linietsky 10 years ago
parent
commit
bed3b7f092
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/io/xml_parser.cpp

+ 1 - 1
core/io/xml_parser.cpp

@@ -34,7 +34,7 @@ VARIANT_ENUM_CAST(XMLParser::NodeType);
 
 
 static bool _equalsn(const CharType* str1, const CharType* str2, int len) {
 static bool _equalsn(const CharType* str1, const CharType* str2, int len) {
 	int i;
 	int i;
-	for(i=0; str1[i] && str2[i] && i < len; ++i)
+	for(i=0; i < len && str1[i] && str2[i] ; ++i)
 	     if (str1[i] != str2[i])
 	     if (str1[i] != str2[i])
 		     return false;
 		     return false;