Fix warning in HLGameRules::PlayerDeath.

This commit is contained in:
Marco Cawthorne 2022-08-05 14:42:01 -07:00
parent fefc95108f
commit f53ed471e1
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ HLGameRules::PlayerDeath(NSClientPlayer pl)
if (pl.health < -50) {
FX_GibHuman(pl.origin, vectoangles(pl.origin - g_dmg_eAttacker.origin), g_dmg_iDamage * 2.0f);
} else {
FX_Corpse_Spawn(pl, ANIM_DIESIMPLE);
FX_Corpse_Spawn((player)pl, ANIM_DIESIMPLE);
}
}