mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- prevent infinite recursion in PlayerPawn.GetObituary when the inflictor is the same as the origin for the kill.
This commit is contained in:
parent
e1698c6d41
commit
5935dc706d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue