- refactored the global sectors array into a more VM friendly type and moved it into FLevelLocals.

This commit is contained in:
Christoph Oelckers 2017-01-07 19:32:24 +01:00
commit c02281a439
57 changed files with 438 additions and 456 deletions

View file

@ -563,10 +563,13 @@ public:
void Clear()
{
if (this->Array) delete[] this->Array;
this->Count = 0;
this->Array = NULL;
}
void Alloc(unsigned int amount)
{
Clear();
// intentionally first deletes and then reallocates.
if (this->Array) delete[] this->Array;
this->Array = new T[amount];
this->Count = amount;
}