mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Merge branch '11-array-bounds' into 'master'
Fix GCC 11 array-bounds warning in P_SetupStateAnimation See merge request STJr/SRB2!1614
This commit is contained in:
commit
e0071c1c36
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,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…
Reference in a new issue