- last commit deleted a small piece of code.

This commit is contained in:
Christoph Oelckers 2017-03-17 00:31:15 +01:00
parent f201dab534
commit f818d25542
2 changed files with 8 additions and 4 deletions

View file

@ -3436,12 +3436,17 @@ void P_FreeLevelData ()
level.killed_monsters = level.found_items = level.found_secrets =
wminfo.maxfrags = 0;
FBehavior::StaticUnloadModules ();
level.segs.Clear();
if (level.sectors.Size() > 0)
{
delete[] level.sectors[0].e;
}
for (auto &sub : level.subsectors)
{
if (sub.BSP != nullptr) delete sub.BSP;
}
FBehavior::StaticUnloadModules ();
level.segs.Clear();
level.sectors.Clear();
level.lines.Clear();
level.sides.Clear();

View file

@ -1462,7 +1462,6 @@ struct FMiniBSP
TArray<vertex_t> Verts;
};
//
// OTHER TYPES
//