mirror of
https://github.com/leozide/leocad
synced 2025-01-18 22:26:44 +01:00
Fixed lcArray::Add() not default initializing.
This commit is contained in:
parent
ee5c551bc8
commit
d84d8f1f3c
1 changed files with 2 additions and 1 deletions
|
@ -154,7 +154,8 @@ public:
|
|||
T& Add()
|
||||
{
|
||||
AllocGrow(1);
|
||||
return mData[mLength++];
|
||||
mData[mLength++] = T();
|
||||
return mData[mLength - 1];
|
||||
}
|
||||
|
||||
T& InsertAt(int Index)
|
||||
|
|
Loading…
Reference in a new issue