Skip to content

Commit fbd8e70

Browse files
committed
Fix potential error with AOT for Enum.GetValues
1 parent a140f9e commit fbd8e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MultiAdmin/ServerIO/InputHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ public static void RandomizeInputColors()
444444
try
445445
{
446446
Random random = new();
447-
Array colors = Enum.GetValues(typeof(ConsoleColor));
447+
Array colors = Enum.GetValues<ConsoleColor>();
448448

449449
ConsoleColor random1 = (ConsoleColor)colors.GetValue(random.Next(colors.Length));
450450
ConsoleColor random2 = (ConsoleColor)colors.GetValue(random.Next(colors.Length));

0 commit comments

Comments
 (0)