- 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
parent 780b3ce42c
commit 18253df868

View file

@ -2976,7 +2976,7 @@ void MapLoader::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;
}
}