- fixed: It may happen that a degenerate subsector ends up without any section or sector. Try to assign the best fit in such a case so that the relevant pointers are not null.

This commit is contained in:
Christoph Oelckers 2018-11-11 09:33:40 +01:00
commit 094afdfd5f
2 changed files with 87 additions and 4 deletions

View file

@ -458,7 +458,12 @@ public:
void Reset()
{
Clear();
ShrinkToFit();
Most = 0;
if (Array != nullptr)
{
M_Free(Array);
Array = nullptr;
}
}
private:
T *Array;