Browse Source

Update simObject.cpp

Accidental redefine
Areloch 6 years ago
parent
commit
701ae6034d
1 changed files with 0 additions and 1 deletions
  1. 0 1
      Engine/source/console/simObject.cpp

+ 0 - 1
Engine/source/console/simObject.cpp

@@ -2844,7 +2844,6 @@ DefineEngineMethod( SimObject, getFieldValue, const char*, ( const char* fieldNa
    // Parse out index if the field is given in the form of 'name[index]'.
    // Parse out index if the field is given in the form of 'name[index]'.
    
    
    const char* arrayIndex = NULL;
    const char* arrayIndex = NULL;
-   const U32 nameLen = dStrlen( fieldName );
    if( fieldName[ nameLen - 1 ] == ']' )
    if( fieldName[ nameLen - 1 ] == ']' )
    {
    {
       const char* leftBracket = dStrchr( fieldName, '[' );
       const char* leftBracket = dStrchr( fieldName, '[' );