Merge remote-tracking branch 'upstream/development' into torquescript-generateCompiler

This commit is contained in:
marauder2k7 2024-04-20 06:21:05 +01:00
commit 4f3a1f395c
18 changed files with 87 additions and 110 deletions

View file

@ -3072,6 +3072,13 @@ DefineEngineMethod( SimObject, setFieldValue, bool, ( const char* fieldName, con
{
char fieldNameBuffer[ 1024 ];
char arrayIndexBuffer[ 64 ];
if( !fieldName || !fieldName[0] )
{
AssertFatal(false, "SimObject::setFieldValue - Invalid field name.");
Con::errorf( "SimObject::setFieldValue - Invalid field name." );
return false;
}
// Parse out index if the field is given in the form of 'name[index]'.