Ver Fonte

Fix missing null check in Mono Binding of GD.print

Raul Santos há 5 anos atrás
pai
commit
6b9c22542f
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs

+ 1 - 1
modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs

@@ -83,7 +83,7 @@ namespace Godot
 
 
         public static void Print(params object[] what)
         public static void Print(params object[] what)
         {
         {
-            godot_icall_GD_print(Array.ConvertAll(what, x => x.ToString()));
+            godot_icall_GD_print(Array.ConvertAll(what, x => x?.ToString()));
         }
         }
 
 
         public static void PrintStack()
         public static void PrintStack()