From fd1864bb4861e2caec7248644abedcba9bd42587 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 7 Nov 2022 13:48:01 +0100 Subject: [PATCH] - fixed bad iterator setup in SpriteSetupPost --- source/games/sw/src/sprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/sw/src/sprite.cpp b/source/games/sw/src/sprite.cpp index e609ded9d..8247180a1 100644 --- a/source/games/sw/src/sprite.cpp +++ b/source/games/sw/src/sprite.cpp @@ -1577,7 +1577,7 @@ void SpriteSetupPost(void) while (auto iActor = it.Next()) { SWSectIterator it2(iActor->sector()); - while (auto jActor = it.Next()) + while (auto jActor = it2.Next()) { if (jActor->spr.picnum == ST1) continue;