- SW: fixed bad sector iterator in DriveCrush.

This was causing spurious crashes.
Fixes #218
This commit is contained in:
Christoph Oelckers 2020-12-08 22:09:17 +01:00
parent 3713cb0f09
commit b3988165e2

View file

@ -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];