- 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:
parent
8104ef5189
commit
fafc636476
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue