Battlegrounds/SeethingShore: Fix crash on player logout

This commit is contained in:
Golrag
2025-05-24 09:53:57 +02:00
parent 286f5c9d03
commit dc4740cbb7

View File

@@ -689,6 +689,9 @@ struct transport_seething_shore : TransportScript
void OnRemovePassenger(Transport* /*transport*/, Player* player) override
{
if (!player->IsInWorld())
return;
if (Battleground const* bg = player->GetBattleground())
{
if (bg->GetStatus() != STATUS_IN_PROGRESS)