Fix regression in P_SetupStateAnimation

This commit is contained in:
Lactozilla 2024-11-30 11:47:43 -03:00
parent c4dbf42ded
commit a531499b8f

View file

@ -90,7 +90,7 @@ static void P_SetupStateAnimation(mobj_t *mobj, state_t *st)
if (mobj->sprite == SPR_PLAY && mobj->skin)
{
spritedef_t *spritedef = P_GetSkinSpritedef(mobj->skin, mobj->sprite2);
animlength = (INT32)(spritedef->numframes);
animlength = (INT32)(spritedef->numframes) - 1;
}
else
animlength = st->var1;