From 3fe67fb850f39784e4da98023a51168cf830edef Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Mon, 30 Mar 2026 23:07:21 -0500 Subject: [PATCH] fix verve editor crash if for some reason, function VerveEditor::CreateField( %targetStack, %fieldName, %fieldType ) is called without a %fieldType, the eval call was crashing. this fixes the imediate issue, but I'd advise followup tracing. --- .../game/tools/VerveEditor/Scripts/Inspector/Controls.tscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Templates/BaseGame/game/tools/VerveEditor/Scripts/Inspector/Controls.tscript b/Templates/BaseGame/game/tools/VerveEditor/Scripts/Inspector/Controls.tscript index 520ca3cfa..4d5808b98 100644 --- a/Templates/BaseGame/game/tools/VerveEditor/Scripts/Inspector/Controls.tscript +++ b/Templates/BaseGame/game/tools/VerveEditor/Scripts/Inspector/Controls.tscript @@ -120,7 +120,7 @@ function VerveEditor::CreateField( %targetStack, %fieldName, %fieldType ) }; %fieldContainer.add( %fieldLabel ); - if ( isMethod( "VerveEditor", "Create" @ %fieldType @ "Field" ) ) + if ( (%fieldType !$= "") && (isMethod( "VerveEditor", "Create" @ %fieldType @ "Field" ) )) { // Create the Input Control. %fieldInput = eval( "return VerveEditor::Create" @ %fieldType @ "Field(" @ %fieldContainer @ "," @ %fieldName @ ");" );