local obectName doubleup

This commit is contained in:
Azaezel 2018-03-12 04:03:46 -05:00
parent 9298d889b3
commit 65870124b0

View file

@ -192,7 +192,7 @@ SimObject* TamlJSONReader::parseType( const rapidjson::Value::ConstMemberIterato
for( rapidjson::Value::ConstMemberIterator objectMemberItr = typeValue.MemberBegin(); objectMemberItr != typeValue.MemberEnd(); ++objectMemberItr ) for( rapidjson::Value::ConstMemberIterator objectMemberItr = typeValue.MemberBegin(); objectMemberItr != typeValue.MemberEnd(); ++objectMemberItr )
{ {
// Fetch name and value. // Fetch name and value.
const rapidjson::Value& objectName = objectMemberItr->name; const rapidjson::Value& objName = objectMemberItr->name;
const rapidjson::Value& objectValue = objectMemberItr->value; const rapidjson::Value& objectValue = objectMemberItr->value;
// Skip if not an object. // Skip if not an object.
@ -200,7 +200,7 @@ SimObject* TamlJSONReader::parseType( const rapidjson::Value::ConstMemberIterato
continue; continue;
// Find the period character in the name. // Find the period character in the name.
const char* pPeriod = dStrchr( objectName.GetString(), '.' ); const char* pPeriod = dStrchr( objName.GetString(), '.' );
// Did we find the period? // Did we find the period?
if ( pPeriod == NULL ) if ( pPeriod == NULL )