mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
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:
parent
1cdf381aba
commit
da6a0ae48b
1 changed files with 1 additions and 0 deletions
|
|
@ -149,6 +149,7 @@ public:
|
||||||
|
|
||||||
Vector& operator=(const Vector& rhs)
|
Vector& operator=(const Vector& rhs)
|
||||||
{
|
{
|
||||||
|
clear();
|
||||||
for (auto itr = rhs.begin(); itr != rhs.end(); itr++)
|
for (auto itr = rhs.begin(); itr != rhs.end(); itr++)
|
||||||
{
|
{
|
||||||
push_back(*itr);
|
push_back(*itr);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue