Blood: fix ILLUSION.MAP crash

This commit is contained in:
CommonLoon102 2020-03-29 12:27:54 +02:00 committed by Christoph Oelckers
parent 9e8e441d02
commit 26344d1193

View file

@ -5842,7 +5842,9 @@ void actProcessSprites(void)
if (pSprite->flags & 32)
continue;
int nXSprite = pSprite->extra;
dassert(nXSprite > 0 && nXSprite < kMaxXSprites);
//dassert(nXSprite > 0 && nXSprite < kMaxXSprites);
if (nXSprite <= 0 || nXSprite >= kMaxXSprites)
continue;
XSPRITE *pXSprite = &xsprite[nXSprite];
switch (pSprite->type) {
case kTrapSawCircular: