From 83a04341ca44aa4d1a00300a2b9e4b304e520872 Mon Sep 17 00:00:00 2001 From: qndel Date: Thu, 3 Oct 2019 15:19:03 +0200 Subject: [PATCH] [hellfire] DrawClippedObject bin exact --- Source/scrollrt.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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;