mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 13:31:37 +00:00
- fix crash on dying when player class has no death states
https://forum.zdoom.org/viewtopic.php?t=60815
This commit is contained in:
parent
fae514f30d
commit
7009755c52
1 changed files with 3 additions and 1 deletions
|
@ -714,7 +714,9 @@ void AActor::Die (AActor *source, AActor *inflictor, int dmgflags)
|
|||
tics = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
// The following condition is needed to avoid crash when player class has no death states
|
||||
// Instance of player pawn will be garbage collected on reloading of level
|
||||
else if (player == nullptr)
|
||||
{
|
||||
Destroy();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue