|
@@ -45,6 +45,7 @@ SimObject* TamlJSONReader::read( FileStream& stream )
|
|
Con::warnf("TamlJSONReader::read() - Could not load Taml JSON file from stream.");
|
|
Con::warnf("TamlJSONReader::read() - Could not load Taml JSON file from stream.");
|
|
return NULL;
|
|
return NULL;
|
|
}
|
|
}
|
|
|
|
+ jsonText[streamSize] = NULL;
|
|
|
|
|
|
// Create JSON document.
|
|
// Create JSON document.
|
|
rapidjson::Document document;
|
|
rapidjson::Document document;
|
|
@@ -662,7 +663,7 @@ inline const char* TamlJSONReader::getTamlObjectName( const rapidjson::Value& va
|
|
StringTableEntry attributeName = StringTable->insert( memberItr->name.GetString() );
|
|
StringTableEntry attributeName = StringTable->insert( memberItr->name.GetString() );
|
|
|
|
|
|
// Skip if not the correct attribute.
|
|
// Skip if not the correct attribute.
|
|
- if ( attributeName != tamlRefToIdName )
|
|
|
|
|
|
+ if ( attributeName != tamlNamedObjectName )
|
|
continue;
|
|
continue;
|
|
|
|
|
|
// Is the value an integer?
|
|
// Is the value an integer?
|