mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 07:12:36 +00:00
- 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:
parent
780b3ce42c
commit
18253df868
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue