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
This commit is contained in:
James R 2025-05-25 21:47:31 -07:00
parent 1cdf381aba
commit da6a0ae48b

View file

@ -149,6 +149,7 @@ public:
Vector& operator=(const Vector& rhs)
{
clear();
for (auto itr = rhs.begin(); itr != rhs.end(); itr++)
{
push_back(*itr);