- don't attempt to decode animation frames at offsets beyond the end of the current page.

Copied from EDuke32.
This commit is contained in:
Christoph Oelckers 2021-07-02 20:33:09 +02:00
parent 0724b3326c
commit 5d67987fe1

View file

@ -188,6 +188,9 @@ static void renderframe(anim_t *anim, uint16_t framenumber, uint16_t *pagepointe
while (frame--) offset += LittleShort(pagepointer[frame]);
if (offset >= anim->curlp->nBytes)
return;
uint8_t *ppointer = (uint8_t *)(pagepointer) + anim->curlp->nRecords*2 + offset + 4;
if ((ppointer-4)[1])