summaryrefslogtreecommitdiff
path: root/core/math/vector4i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/math/vector4i.cpp')
-rw-r--r--core/math/vector4i.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/vector4i.cpp b/core/math/vector4i.cpp
index 8c571b02e3..2dc5b74202 100644
--- a/core/math/vector4i.cpp
+++ b/core/math/vector4i.cpp
@@ -47,7 +47,7 @@ Vector4i::Axis Vector4i::min_axis_index() const {
uint32_t min_index = 0;
int32_t min_value = x;
for (uint32_t i = 1; i < 4; i++) {
- if (operator[](i) < min_value) {
+ if (operator[](i) <= min_value) {
min_index = i;
min_value = operator[](i);
}