From 2109bd3f9722929a1d8b6850b235677a03a1313a Mon Sep 17 00:00:00 2001 From: Nathan Warden Date: Wed, 31 Jan 2018 14:02:17 -0500 Subject: Fix an infinite recursion in the Mathf.Decimals method when using floats. --- modules/mono/glue/cs_files/Mathf.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/glue/cs_files/Mathf.cs b/modules/mono/glue/cs_files/Mathf.cs index 6951ace4fc..476396e9a3 100644 --- a/modules/mono/glue/cs_files/Mathf.cs +++ b/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) -- cgit v1.2.3