From 292cf93fa7333db5e9908fb898e42477de370c5e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 18 Nov 2018 01:23:14 +0100 Subject: [PATCH] - fixed TArray's Append methods. I mistakenly assumed that Grow would incease the array's reserved space. --- src/tarray.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tarray.h b/src/tarray.h index 8acb083de..c31763df1 100644 --- a/src/tarray.h +++ b/src/tarray.h @@ -283,6 +283,7 @@ public: unsigned start = Count; Grow(item.Size()); + Count += item.Size(); for (unsigned i = 0; i < item.Size(); i++) { @@ -296,6 +297,7 @@ public: unsigned start = Count; Grow(item.Size()); + Count += item.Size(); for (unsigned i = 0; i < item.Size(); i++) {