From d84d8f1f3c785b7bb0a8986ffb33411269009e5a Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Sat, 12 Jun 2021 19:23:12 -0700 Subject: [PATCH] Fixed lcArray::Add() not default initializing. --- common/lc_array.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/lc_array.h b/common/lc_array.h index 2a1b7039..d655feda 100644 --- a/common/lc_array.h +++ b/common/lc_array.h @@ -154,7 +154,8 @@ public: T& Add() { AllocGrow(1); - return mData[mLength++]; + mData[mLength++] = T(); + return mData[mLength - 1]; } T& InsertAt(int Index)