mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-19 15:40:58 +00:00
- comments
This commit is contained in:
parent
84e9356bf2
commit
a6845f55e4
1 changed files with 2 additions and 1 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue