fixed: do not compare index 2 twice

This commit is contained in:
Arne Morten Kvarving 2023-05-15 12:28:07 +02:00
parent 3ae5fa9f80
commit a428d09ad3

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);
}