diff --git a/src/xml/xml_util.cc b/src/xml/xml_util.cc index fcda1791..d5250cbc 100644 --- a/src/xml/xml_util.cc +++ b/src/xml/xml_util.cc @@ -523,14 +523,13 @@ bool mjXUtil::SameVector(const T* vec1, const T* vec2, int n) { return false; } - bool same = true; - for (int i=0; i std::numeric_limits::epsilon()) { - same = false; + return false; } } - return same; + return true; } template bool mjXUtil::SameVector(const double* vec1, const double* vec2, int n);