Remove mixed code and declarations warning See merge request !1618
Fix GCC 11 array-bounds warning in P_SetupStateAnimation See merge request !1614
Removing inline here silences the warning somehow, it could be a GCC bug?