Browse Source

Fixed lack of strtof on Windows

Ivan Safrin 13 years ago
parent
commit
569e947f5d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Core/Contents/Source/PolyObject.cpp

+ 1 - 1
Core/Contents/Source/PolyObject.cpp

@@ -249,7 +249,7 @@ void Object::createFromXMLElement(TiXmlElement *element, ObjectEntry *entry) {
 			entry->NumberVal = entry->intVal;
 			entry->boolVal = entry->intVal;
 		} else {
-			entry->NumberVal = strtof(rawVal, &endResult);
+			entry->NumberVal = strtod(rawVal, &endResult);
 			entry->intVal = entry->NumberVal;
 			entry->boolVal = entry->NumberVal;
 			if (endResult == success) {