- Cosmetic change.

This commit is contained in:
drfrag 2020-10-18 10:03:31 +02:00
parent a20c0a0e02
commit 9a121d1271

View file

@ -98,7 +98,10 @@ template<class T, class U, int fill = 1> void ArrayInsert(T *self, int index, U
{
int oldSize = self->Size();
self->Insert(index, static_cast<typename T::value_type>(val));
for (unsigned i = oldSize; i < self->Size() - 1; i++) (*self)[i] = 0;
if (fill)
{
for (unsigned i = oldSize; i < self->Size() - 1; i++) (*self)[i] = 0;
}
}
template<class T> void ArrayShrinkToFit(T *self)