Переглянути джерело

Fix missing null check in Mono Binding of GD.print

Raul Santos 5 роки тому
батько
коміт
6b9c22542f
1 змінених файлів з 1 додано та 1 видалено
  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)
         {
-            godot_icall_GD_print(Array.ConvertAll(what, x => x.ToString()));
+            godot_icall_GD_print(Array.ConvertAll(what, x => x?.ToString()));
         }
 
         public static void PrintStack()