diff --git a/gtsam/linear/VectorValues.cpp b/gtsam/linear/VectorValues.cpp index 96bafcd16..a0af31c70 100644 --- a/gtsam/linear/VectorValues.cpp +++ b/gtsam/linear/VectorValues.cpp @@ -30,7 +30,7 @@ VectorValues::VectorValues(const VectorValues& other) { /* ************************************************************************* */ VectorValues& VectorValues::operator=(const VectorValues& rhs) { if(this != &rhs) { - resizeLike(rhs); // Copy structure + resizeLike(rhs); // Copy structure values_ = rhs.values_; // Copy values } return *this;