From 4428ea5612cad9f36df483ff65785d07230afc33 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sat, 15 Apr 2023 17:15:15 +1000 Subject: [PATCH] - Exhumed: Fix null chunk access for spider. --- source/games/exhumed/src/spider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/exhumed/src/spider.cpp b/source/games/exhumed/src/spider.cpp index 974ae40f0..9374e3701 100644 --- a/source/games/exhumed/src/spider.cpp +++ b/source/games/exhumed/src/spider.cpp @@ -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);