Explorar o código

Fix an infinite recursion in the Mathf.Decimals method when using floats.

Nathan Warden %!s(int64=7) %!d(string=hai) anos
pai
achega
2109bd3f97
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/mono/glue/cs_files/Mathf.cs

+ 1 - 1
modules/mono/glue/cs_files/Mathf.cs

@@ -71,7 +71,7 @@ namespace Godot
 
         public static int Decimals(float step)
         {
-            return Decimals(step);
+            return Decimals((decimal)step);
         }
 
         public static int Decimals(decimal step)