Skip to content

Commit

Permalink
Fixed lcArray::Add() not default initializing.
Browse files Browse the repository at this point in the history
  • Loading branch information
leozide committed Jun 13, 2021
1 parent ee5c551 commit d84d8f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/lc_array.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ class lcArray
T& Add()
{
AllocGrow(1);
return mData[mLength++];
mData[mLength++] = T();
return mData[mLength - 1];
}

T& InsertAt(int Index)
Expand Down

0 comments on commit d84d8f1

Please sign in to comment.