- Repair OOB access to spriteext[] array accidentally introduced in d572e56839. This repairs stability issues with models enabled under Linux environments.

This commit is contained in:
Mitchell Richters 2021-11-28 01:57:49 +11:00 committed by Christoph Oelckers
parent ff1149d274
commit 8c679f2e17

View file

@ -1554,7 +1554,7 @@ void updateModelInterpolation()
omdtims = mdtims;
mdtims = I_msTime();
for (native_t i = 0; i < MAXSPRITES + MAXUNIQHUDID; ++i)
for (native_t i = 0; i < MAXSPRITES; ++i)
if ((mdpause && spriteext[i].mdanimtims) || (spriteext[i].flags & SPREXT_NOMDANIM))
spriteext[i].mdanimtims += mdtims - omdtims;
}