Fixed a missing check if killer is alive in tdm

This commit is contained in:
Teetime 2013-04-07 14:41:53 +02:00
parent f0e09f50d9
commit 61671f3bcd

View file

@ -17,7 +17,7 @@ int CGameControllerTDM::OnCharacterDeath(class CCharacter *pVictim, class CPlaye
IGameController::OnCharacterDeath(pVictim, pKiller, Weapon);
if(Weapon != WEAPON_GAME)
if(pKiller && Weapon != WEAPON_GAME)
{
// do team scoring
if(pKiller == pVictim->GetPlayer() || pKiller->GetTeam() == pVictim->GetPlayer()->GetTeam())