- 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:
parent
c946edd9bf
commit
094afdfd5f
2 changed files with 87 additions and 4 deletions
|
|
@ -458,7 +458,12 @@ public:
|
|||
void Reset()
|
||||
{
|
||||
Clear();
|
||||
ShrinkToFit();
|
||||
Most = 0;
|
||||
if (Array != nullptr)
|
||||
{
|
||||
M_Free(Array);
|
||||
Array = nullptr;
|
||||
}
|
||||
}
|
||||
private:
|
||||
T *Array;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue