mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
- fixed: If player is killed by world, attacker was not checked for nullptr, causing a crash.
This commit is contained in:
parent
ff88ecd3f0
commit
26f7902c3f
1 changed files with 1 additions and 0 deletions
|
@ -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 (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 (attacker->player == nullptr) attacker = self; // for the message creation
|
||||||
|
|
||||||
if (message != NULL && message[0] == '$')
|
if (message != NULL && message[0] == '$')
|
||||||
|
|
Loading…
Reference in a new issue