From 236b072202a88ba030dada92f9c5d6a2ca4224a4 Mon Sep 17 00:00:00 2001 From: 766974616c79 <100430077+766974616c79@users.noreply.github.com> Date: Mon, 26 Jan 2026 16:39:37 +0100 Subject: [PATCH] Select the implementation without parameters --- .../tools/Code/Widgets/ControlWidgets/GenericControlWidget.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/addons/tools/Code/Widgets/ControlWidgets/GenericControlWidget.cs b/game/addons/tools/Code/Widgets/ControlWidgets/GenericControlWidget.cs index 0852a0e2..88610f1d 100644 --- a/game/addons/tools/Code/Widgets/ControlWidgets/GenericControlWidget.cs +++ b/game/addons/tools/Code/Widgets/ControlWidgets/GenericControlWidget.cs @@ -159,7 +159,7 @@ public class GenericControlWidget : ControlObjectWidget string labelText = displayInfo.Name; // If the type has a custom ToString(), use that instead of the type name. - if ( type.GetMethod( "ToString" ).DeclaringType != typeof( object ) ) + if ( type.GetMethod( "ToString", Type.EmptyTypes ).DeclaringType != typeof( object ) ) { labelText = value?.ToString() ?? labelText; }