diff options
-rw-r--r-- | source/blender/blenlib/BLI_math_vector.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_math_vector.hh b/source/blender/blenlib/BLI_math_vector.hh index 734aa8364a6..848f7f74187 100644 --- a/source/blender/blenlib/BLI_math_vector.hh +++ b/source/blender/blenlib/BLI_math_vector.hh @@ -1174,13 +1174,13 @@ template<typename bT> struct vec4_base { const bT &operator[](int64_t index) const { - BLI_assert(index < 4); + BLI_assert(index < type_length); return (&x)[index]; } bT &operator[](int64_t index) { - BLI_assert(index < 4); + BLI_assert(index < type_length); return (&x)[index]; } |