fix player death crash
parent
3290fcbdef
commit
a3915679e1
|
@ -260,7 +260,7 @@ public:
|
|||
|
||||
void OnPlayerJustDied(Player* player) override
|
||||
{
|
||||
if (!NeedsEnabled || !player->IsInWorld())
|
||||
if (!NeedsEnabled || !player->IsInWorld() || !player->IsAlive() || !player->GetSession() || player->GetSession()->IsBot())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue