mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-21 19:10:50 +00:00
- Cosmetic change.
This commit is contained in:
parent
a20c0a0e02
commit
9a121d1271
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue