[Blood] Fix wrong sector path marker stat lookup

This commit is contained in:
Nikolay Ambartsumov 2020-12-31 16:08:03 +02:00 committed by Christoph Oelckers
parent 3ecd02dcac
commit edd5b92c94

View file

@ -1498,7 +1498,7 @@ void OperatePath(unsigned int nSector, XSECTOR *pXSector, EVENT event)
spritetype *pSprite2 = &sprite[pXSector->marker0]; spritetype *pSprite2 = &sprite[pXSector->marker0];
XSPRITE *pXSprite2 = &xsprite[pSprite2->extra]; XSPRITE *pXSprite2 = &xsprite[pSprite2->extra];
int nId = pXSprite2->data2; int nId = pXSprite2->data2;
StatIterator it(kStatMarker); StatIterator it(kStatPathMarker);
while ((nSprite = it.NextIndex()) >= 0) while ((nSprite = it.NextIndex()) >= 0)
{ {
pSprite = &sprite[nSprite]; pSprite = &sprite[nSprite];
@ -1652,7 +1652,7 @@ void InitPath(unsigned int nSector, XSECTOR *pXSector)
XSPRITE *pXSprite; XSPRITE *pXSprite;
assert(nSector < (unsigned int)numsectors); assert(nSector < (unsigned int)numsectors);
int nId = pXSector->data; int nId = pXSector->data;
StatIterator it(kStatMarker); StatIterator it(kStatPathMarker);
while ((nSprite = it.NextIndex()) >= 0) while ((nSprite = it.NextIndex()) >= 0)
{ {
pSprite = &sprite[nSprite]; pSprite = &sprite[nSprite];