From b3988165e2323715d8188a85ff21c4be0a1016a7 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 8 Dec 2020 22:09:17 +0100 Subject: [PATCH] - SW: fixed bad sector iterator in DriveCrush. This was causing spurious crashes. Fixes #218 --- source/sw/src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/sw/src/player.cpp b/source/sw/src/player.cpp index 791b640eb..4cf8f5ac8 100644 --- a/source/sw/src/player.cpp +++ b/source/sw/src/player.cpp @@ -2639,7 +2639,7 @@ DriveCrush(PLAYERp pp, int *x, int *y) return; // main sector - SectIterator it(StatDamageList[sop->op_main_sector]); + SectIterator it(sop->op_main_sector); while ((i = it.NextIndex()) >= 0) { sp = &sprite[i];