fix player death crash

master
Dominik Madarász 2024-06-21 15:36:05 +02:00
parent 3290fcbdef
commit a3915679e1
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ public:
void OnPlayerJustDied(Player* player) override void OnPlayerJustDied(Player* player) override
{ {
if (!NeedsEnabled || !player->IsInWorld()) if (!NeedsEnabled || !player->IsInWorld() || !player->IsAlive() || !player->GetSession() || player->GetSession()->IsBot())
{ {
return; return;
} }