瀏覽代碼

Merge pull request #16258 from NathanWarden/fix_mono_decimals_method

[Mono] Fix an infinite recursion in the Mathf.Decimals method when using floats.
Rémi Verschelde 7 年之前
父節點
當前提交
2459eebc1d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
         public static int Decimals(float step)
         {
         {
-            return Decimals(step);
+            return Decimals((decimal)step);
         }
         }
 
 
         public static int Decimals(decimal step)
         public static int Decimals(decimal step)