Update simObject.cpp

Accidental redefine
This commit is contained in:
Areloch 2019-02-23 21:41:22 -06:00 committed by GitHub
parent a4fde427b7
commit cf21bf7dfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]'.
const char* arrayIndex = NULL;
const U32 nameLen = dStrlen( fieldName );
if( fieldName[ nameLen - 1 ] == ']' )
{
const char* leftBracket = dStrchr( fieldName, '[' );