mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-13 03:20:44 +00:00
Fix another potential index of sprite array by -1
This commit is contained in:
parent
ceccc0c2ee
commit
66e3a53991
1 changed files with 2 additions and 2 deletions
|
@ -1173,8 +1173,8 @@ void FuncPlayer(int pA, int nDamage, int nRun)
|
|||
}
|
||||
else
|
||||
{
|
||||
// ded
|
||||
if (sprite[nSprite2].statnum == 100)
|
||||
// player has died
|
||||
if (nSprite2 > -1 && sprite[nSprite2].statnum == 100)
|
||||
{
|
||||
short nPlayer2 = GetPlayerFromSprite(nSprite2);
|
||||
|
||||
|
|
Loading…
Reference in a new issue