- comments

This commit is contained in:
Christoph Oelckers 2022-01-02 15:39:39 +01:00
parent 84e9356bf2
commit a6845f55e4

View file

@ -530,13 +530,14 @@ void TerminateLevel(void)
}
}
// Kill User memory and delete sprites
// clear some pointers KillActor may operate upon.
SWSpriteIterator it;
while (auto actor = it.Next())
{
actor->user.targetActor = nullptr;
actor->user.flameActor = nullptr;
}
// Kill User memory and delete sprites
it.Reset();
while (auto actor = it.Next())
{