Skip to content

Commit 2addb91

Browse files
committed
Select the implementation without parameters
1 parent a4334d7 commit 2addb91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

game/addons/tools/Code/Widgets/ControlWidgets/GenericControlWidget.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ bool PaintPlaceholder()
159159
string labelText = displayInfo.Name;
160160

161161
// If the type has a custom ToString(), use that instead of the type name.
162-
if ( type.GetMethod( "ToString" ).DeclaringType != typeof( object ) )
162+
if ( type.GetMethod( "ToString", Type.EmptyTypes ).DeclaringType != typeof( object ) )
163163
{
164164
labelText = value?.ToString() ?? labelText;
165165
}

0 commit comments

Comments
 (0)