- fixed crash in Last Warrior map 9.

Really, asserts should not be used to test for errors that can actually happen!
This commit is contained in:
Christoph Oelckers 2022-06-06 20:56:50 +02:00
parent 998def2487
commit f8aacb3825

View file

@ -16999,7 +16999,7 @@ bool SpriteWarpToSurface(DSWActor* actor)
}
}
ASSERT(Found);
if (!Found) return false;
if (underActor->spr.lotag == 0)
return false;
@ -17019,7 +17019,7 @@ bool SpriteWarpToSurface(DSWActor* actor)
}
}
ASSERT(Found);
if (!Found) return false;
// get the offset from the under sprite
sx = underActor->spr.pos.X - actor->spr.pos.X;