From da6a0ae48becfd123396ce65cf4a465d869c2fe9 Mon Sep 17 00:00:00 2001 From: James R Date: Sun, 25 May 2025 21:47:31 -0700 Subject: [PATCH] srb2::Vector: fix copy assignment not clearing contents of vector - Test - debugwaypoints - very easily observable, all labels are the same without this fix - ACS text would sometimes be reversed without this fix, not as easily observable --- src/core/vector.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/vector.hpp b/src/core/vector.hpp index e6d66f91f..ec26334ea 100644 --- a/src/core/vector.hpp +++ b/src/core/vector.hpp @@ -149,6 +149,7 @@ public: Vector& operator=(const Vector& rhs) { + clear(); for (auto itr = rhs.begin(); itr != rhs.end(); itr++) { push_back(*itr);