diff --git a/source/games/sw/src/game.cpp b/source/games/sw/src/game.cpp index e79a957e6..2b76d6a20 100644 --- a/source/games/sw/src/game.cpp +++ b/source/games/sw/src/game.cpp @@ -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()) {