diff options
Diffstat (limited to 'core/variant')
-rw-r--r-- | core/variant/variant_utility.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant/variant_utility.cpp b/core/variant/variant_utility.cpp index 7ff64c88f0..5bad27c607 100644 --- a/core/variant/variant_utility.cpp +++ b/core/variant/variant_utility.cpp @@ -129,7 +129,7 @@ struct VariantUtilityFunctions { } static inline int floori(double x) { - return int(x); + return int(Math::floor(x)); } static inline Variant ceil(Variant x, Callable::CallError &r_error) { |