- Exhumed: Fix null chunk access for spider.

This commit is contained in:
Mitchell Richters 2023-04-15 17:15:15 +10:00
parent d8441f712e
commit 4428ea5612

View file

@ -122,7 +122,7 @@ void AISpider::Tick(RunListEvent* ev)
const auto& spiderSeq = getSequence(spp->nSeqFile, SpiderSeq[nAction].nSeqId);
const auto& seqFrame = spiderSeq[spp->nFrame];
spp->spr.picnum = seqFrame.chunks[0].picnum;
spp->spr.picnum = spp->nFrame < 9 ? seqFrame.chunks[0].picnum : -1;
playFrameSound(spp, seqFrame);