mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-21 15:32:34 +00:00
Safety cap on M_GetFollowerState
This commit is contained in:
parent
a52411b552
commit
0da140e37f
1 changed files with 2 additions and 0 deletions
|
|
@ -406,6 +406,8 @@ void M_CharacterSelect(INT32 choice)
|
||||||
// Gets the selected follower's state for a given setup player.
|
// Gets the selected follower's state for a given setup player.
|
||||||
static void M_GetFollowerState(setup_player_t *p)
|
static void M_GetFollowerState(setup_player_t *p)
|
||||||
{
|
{
|
||||||
|
if (p->followern < 0 || p->followern >= numfollowers)
|
||||||
|
return;
|
||||||
|
|
||||||
p->follower_state = &states[followers[p->followern].followstate];
|
p->follower_state = &states[followers[p->followern].followstate];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue