mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'jartha/fix-vector-copy-assign' into 'master'
srb2::Vector: fix copy assignment not clearing contents of vector Closes #1506 See merge request kart-krew-dev/ring-racers-internal!2579
This commit is contained in:
commit
b056409f7b
1 changed files with 1 additions and 0 deletions
|
|
@ -149,6 +149,7 @@ public:
|
|||
|
||||
Vector& operator=(const Vector& rhs)
|
||||
{
|
||||
clear();
|
||||
for (auto itr = rhs.begin(); itr != rhs.end(); itr++)
|
||||
{
|
||||
push_back(*itr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue