Backport mobj interpolators crash fix

From commit f009b3d8c9d2273bf2e51ef9a23fbfedc2da09df in the public repo. Porting directly into master because I'm tired of kartdebugwaypoints crashing all the time.
This commit is contained in:
Sally Coolatta 2022-09-09 13:49:57 -04:00 committed by NepDisk
parent 1443f99ef9
commit 08b007b1ee

View file

@ -709,7 +709,7 @@ void R_RemoveMobjInterpolator(mobj_t *mobj)
if (interpolated_mobjs_len == 0) return;
for (i = 0; i < interpolated_mobjs_len - 1; i++)
for (i = 0; i < interpolated_mobjs_len; i++)
{
if (interpolated_mobjs[i] == mobj)
{