Browse Source

Taml properly read object names in JSON format.
getTamlObjectName previously looked for tamlRefIdName when it should
be looking for tamlNamedObjectName.

Lukas Joergensen 11 years ago
parent
commit
bc3fe6365c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      engine/source/persistence/taml/json/tamlJSONReader.cc

+ 1 - 1
engine/source/persistence/taml/json/tamlJSONReader.cc

@@ -663,7 +663,7 @@ inline const char* TamlJSONReader::getTamlObjectName( const rapidjson::Value& va
         StringTableEntry attributeName = StringTable->insert( memberItr->name.GetString() );
 
         // Skip if not the correct attribute.
-        if ( attributeName != tamlRefToIdName )
+        if ( attributeName != tamlNamedObjectName )
             continue;
 
         // Is the value an integer?