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
parent 8e0831a183
commit cbc5cc3b2a
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,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