diff options
author | kobewi <kobewi4e@gmail.com> | 2022-09-27 17:40:56 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-09-27 19:09:34 +0200 |
commit | 7499f4126495f87b3b7ac4ecc8212a9f1f5c21ac (patch) | |
tree | 57dfcfc7969b2e608415b0bb6eae9241760bfa3c /core | |
parent | c2f66648f1cb7f26adf77cc3cf91052c95be5dbe (diff) |
Fix wrong floori() behavior
Diffstat (limited to 'core')
-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) { |