mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
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:
parent
ca7e7b5d91
commit
df1c0fddcb
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ void P_AddCachedAction(mobj_t *mobj, INT32 statenum)
|
||||||
//
|
//
|
||||||
// P_SetupStateAnimation
|
// 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 animlength = (mobj->sprite == SPR_PLAY && mobj->skin)
|
||||||
? (INT32)(((skin_t *)mobj->skin)->sprites[mobj->sprite2].numframes) - 1
|
? (INT32)(((skin_t *)mobj->skin)->sprites[mobj->sprite2].numframes) - 1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue