From 26344d1193901fbd33dcf90fd6a4581e3a7e8260 Mon Sep 17 00:00:00 2001 From: CommonLoon102 Date: Sun, 29 Mar 2020 12:27:54 +0200 Subject: [PATCH] Blood: fix ILLUSION.MAP crash --- source/blood/src/actor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blood/src/actor.cpp b/source/blood/src/actor.cpp index 852f115d1..565375b0f 100644 --- a/source/blood/src/actor.cpp +++ b/source/blood/src/actor.cpp @@ -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: