Clean up behaviors properly when moving levels
Also adds support for foreach loops with the behavior iterator.
This commit is contained in:
parent
ad87477650
commit
1e05bb2a55
6 changed files with 55 additions and 2 deletions
|
|
@ -380,6 +380,7 @@ void FLevelLocals::ClearLevelData(bool fullgc)
|
|||
aabbTree = nullptr;
|
||||
levelMesh = nullptr;
|
||||
VisualThinkerHead = nullptr;
|
||||
ActorBehaviors.Clear();
|
||||
if (screen)
|
||||
screen->SetAABBTree(nullptr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue