Răsfoiți Sursa

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

Lukas Joergensen 11 ani în urmă
părinte
comite
bc3fe6365c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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?