diff options
author | Nathan Warden <nathan@nathanwarden.com> | 2018-01-31 14:02:17 -0500 |
---|---|---|
committer | Nathan Warden <nathan@nathanwarden.com> | 2018-01-31 14:02:17 -0500 |
commit | 2109bd3f9722929a1d8b6850b235677a03a1313a (patch) | |
tree | f39944a268745a1170cd1e5cc7028e1f886bf31f /modules/mono | |
parent | 9f3138eea99b776a82bb1243a963b8e47adbc9c3 (diff) |
Fix an infinite recursion in the Mathf.Decimals method when using floats.
Diffstat (limited to 'modules/mono')
-rw-r--r-- | modules/mono/glue/cs_files/Mathf.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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) |