Apply 1 suggestion(s) to 1 file(s)

This commit is contained in:
Zwip-Zwap Zapony 2023-12-23 13:14:47 +00:00 committed by Hanicef
parent ddba6e80f7
commit ac34fdf129

View file

@ -515,7 +515,7 @@ boolean P_SetMobjState(mobj_t *mobj, statenum_t state)
statenum_t tempstate[NUMSTATES]; // for use with recursion
if (mobj->player != NULL)
P_SetPlayerMobjState(mobj, state);
return P_SetPlayerMobjState(mobj, state);
if (recursion++) // if recursion detected,
memset(seenstate = tempstate, 0, sizeof tempstate); // clear state table