mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-27 17:30:51 +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
|
else
|
||||||
{
|
{
|
||||||
// ded
|
// player has died
|
||||||
if (sprite[nSprite2].statnum == 100)
|
if (nSprite2 > -1 && sprite[nSprite2].statnum == 100)
|
||||||
{
|
{
|
||||||
short nPlayer2 = GetPlayerFromSprite(nSprite2);
|
short nPlayer2 = GetPlayerFromSprite(nSprite2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue