diff --git a/core/variant/variant_utility.cpp b/core/variant/variant_utility.cpp index 7ff64c88f00..5bad27c607a 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) {