- allow allocating constructor of TArray to also reserve the allocated data and use this to properly handle the precalc arrays for the texture resizer.

This commit is contained in:
Christoph Oelckers 2017-11-03 17:27:32 +01:00
commit fafc636476
2 changed files with 4 additions and 4 deletions

View file

@ -132,10 +132,10 @@ public:
Count = 0;
Array = NULL;
}
TArray (int max)
TArray (int max, bool reserve = false)
{
Most = max;
Count = 0;
Count = reserve? max : 0;
Array = (T *)M_Malloc (sizeof(T)*max);
}
TArray (const TArray<T,TT> &other)