Merge pull request #3525 from akva2/fix_cvfVector4_Zero

fixed: do not compare index 2 twice
This commit is contained in:
Arne Morten Kvarving
2023-05-15 13:43:32 +02:00
committed by GitHub

View File

@@ -491,7 +491,7 @@ inline void Vector4<S>::setZero()
template<typename S>
inline bool Vector4<S>::isZero() const
{
return (m_v[0] == 0) && (m_v[1] == 0) && (m_v[2] == 0) && (m_v[2] == 0);
return (m_v[0] == 0) && (m_v[1] == 0) && (m_v[2] == 0) && (m_v[3] == 0);
}