mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-20 08:00:56 +00:00
- add missing null pointer checks
This commit is contained in:
parent
6356aeafc2
commit
560bf3e8df
1 changed files with 2 additions and 2 deletions
|
@ -378,11 +378,11 @@ void powerupDeactivate(PLAYER* pPlayer, int nPowerUp)
|
|||
break;
|
||||
case kItemDivingSuit:
|
||||
pPlayer->damageControl[4]--;
|
||||
if (pPlayer->nPlayer == myconnectindex && VanillaMode() ? true : pPlayer->pwUpTime[24] == 0)
|
||||
if (pPlayer && pPlayer->nPlayer == myconnectindex && VanillaMode() ? true : pPlayer->pwUpTime[24] == 0)
|
||||
sfxSetReverb(0);
|
||||
break;
|
||||
case kItemReflectShots:
|
||||
if (pPlayer->nPlayer == myconnectindex && VanillaMode() ? true : pPlayer->packSlots[1].isActive == 0)
|
||||
if (pPlayer && pPlayer->nPlayer == myconnectindex && VanillaMode() ? true : pPlayer->packSlots[1].isActive == 0)
|
||||
sfxSetReverb(0);
|
||||
break;
|
||||
case kItemGasMask:
|
||||
|
|
Loading…
Reference in a new issue