diff --git a/Source/scrollrt.cpp b/Source/scrollrt.cpp index 69704e93d..3e0de66ff 100644 --- a/Source/scrollrt.cpp +++ b/Source/scrollrt.cpp @@ -986,7 +986,11 @@ void DrawClippedObject(int x, int y, int ox, int oy, BOOL pre, int CelSkip, int } /// ASSERT: assert((unsigned char)bv < MAXOBJECTS); +#ifdef HELLFIRE + if (bv >= MAXOBJECTS) +#else if ((BYTE)bv >= MAXOBJECTS) +#endif return; pCelBuff = object[bv]._oAnimData;