fixed: do not compare index 2 twice
This commit is contained in:
parent
3ae5fa9f80
commit
a428d09ad3
2
external/resinsight/LibCore/cvfVector4.inl
vendored
2
external/resinsight/LibCore/cvfVector4.inl
vendored
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user