- fixed: If player is killed by world, attacker was not checked for nullptr, causing a crash.

This commit is contained in:
Rachael Alexanderson 2017-03-02 06:27:18 -05:00 committed by Christoph Oelckers
parent ff88ecd3f0
commit 26f7902c3f

View file

@ -253,6 +253,7 @@ void ClientObituary (AActor *self, AActor *inflictor, AActor *attacker, int dmgf
}
}
if (message == nullptr) message = messagename; // fallback to defaults if possible.
if (attacker == nullptr) attacker = self; // world
if (attacker->player == nullptr) attacker = self; // for the message creation
if (message != NULL && message[0] == '$')