- prevent infinite recursion in PlayerPawn.GetObituary when the inflictor is the same as the origin for the kill.

This commit is contained in:
Christoph Oelckers 2017-04-09 00:06:23 +02:00
parent e1698c6d41
commit 5935dc706d
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ class PlayerPawn : Actor native
if (mod == 'Telefrag') return "$OB_MPTELEFRAG";
String message;
if (inflictor != NULL)
if (inflictor != NULL && inflictor != self)
{
message = inflictor.GetObituary(victim, inflictor, mod, playerattack);
}