- fixed precaching of switches.

The backwards animation accessed the wrong array which in case of sequences with different length could crash
This commit is contained in:
Christoph Oelckers 2018-12-29 14:01:07 +01:00 committed by drfrag
parent 8e230eebaf
commit 8c38a7c05f

View file

@ -3019,7 +3019,7 @@ static void AddToList(uint8_t *hitlist, FTextureID texid, int bitmask)
}
for (int i = 0; i < switchdef->PairDef->NumFrames; i++)
{
hitlist[switchdef->frames[i].Texture.GetIndex()] |= (uint8_t)bitmask;
hitlist[switchdef->PairDef->frames[i].Texture.GetIndex()] |= (uint8_t)bitmask;
}
}