mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix crash accessing array index out of bounds
This commit is contained in:
parent
2cbd0d0dcc
commit
a58a2dc58b
1 changed files with 2 additions and 2 deletions
|
|
@ -3836,7 +3836,7 @@ void K_SpawnSparkleTrail(mobj_t *mo)
|
|||
INT32 i;
|
||||
UINT8 invanimnum; // Current sparkle animation number
|
||||
INT32 invtime;// Invincibility time left, in seconds
|
||||
UINT8 index = 1;
|
||||
UINT8 index = 0;
|
||||
fixed_t newx, newy, newz;
|
||||
|
||||
I_Assert(mo != NULL);
|
||||
|
|
@ -3850,7 +3850,7 @@ void K_SpawnSparkleTrail(mobj_t *mo)
|
|||
}
|
||||
|
||||
if (leveltime & 2)
|
||||
index = 2;
|
||||
index = 1;
|
||||
|
||||
invtime = mo->player->kartstuff[k_invincibilitytimer]/TICRATE+1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue