mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 04:20:34 +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
8e230eebaf
commit
8c38a7c05f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue