mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 08:30:49 +00:00
- fixed TArray's Append methods.
I mistakenly assumed that Grow would incease the array's reserved space.
This commit is contained in:
parent
983c0c56b1
commit
292cf93fa7
1 changed files with 2 additions and 0 deletions
|
@ -283,6 +283,7 @@ public:
|
||||||
unsigned start = Count;
|
unsigned start = Count;
|
||||||
|
|
||||||
Grow(item.Size());
|
Grow(item.Size());
|
||||||
|
Count += item.Size();
|
||||||
|
|
||||||
for (unsigned i = 0; i < item.Size(); i++)
|
for (unsigned i = 0; i < item.Size(); i++)
|
||||||
{
|
{
|
||||||
|
@ -296,6 +297,7 @@ public:
|
||||||
unsigned start = Count;
|
unsigned start = Count;
|
||||||
|
|
||||||
Grow(item.Size());
|
Grow(item.Size());
|
||||||
|
Count += item.Size();
|
||||||
|
|
||||||
for (unsigned i = 0; i < item.Size(); i++)
|
for (unsigned i = 0; i < item.Size(); i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue