Fix GCC 11 array-bounds warning in P_SetupStateAnimation

Removing inline here silences the warning somehow, it
could be a GCC bug?
This commit is contained in:
James R 2021-09-03 17:18:00 -07:00 committed by toaster
parent ca7e7b5d91
commit df1c0fddcb

View file

@ -88,7 +88,7 @@ void P_AddCachedAction(mobj_t *mobj, INT32 statenum)
//
// P_SetupStateAnimation
//
FUNCINLINE static ATTRINLINE void P_SetupStateAnimation(mobj_t *mobj, state_t *st)
static void P_SetupStateAnimation(mobj_t *mobj, state_t *st)
{
INT32 animlength = (mobj->sprite == SPR_PLAY && mobj->skin)
? (INT32)(((skin_t *)mobj->skin)->sprites[mobj->sprite2].numframes) - 1