mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
-fix TArray::Append with rvalue parameter
This must clear the source array to obey move rules.
This commit is contained in:
parent
ff58e4ec6f
commit
65a37856ec
1 changed files with 1 additions and 0 deletions
|
@ -408,6 +408,7 @@ public:
|
||||||
{
|
{
|
||||||
new(&Array[start + i]) T(std::move(item[i]));
|
new(&Array[start + i]) T(std::move(item[i]));
|
||||||
}
|
}
|
||||||
|
item.Clear();
|
||||||
return start;
|
return start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue