From dc4740cbb749a36855d8d932ef746112ed18a3ad Mon Sep 17 00:00:00 2001 From: Golrag Date: Sat, 24 May 2025 09:53:57 +0200 Subject: Battlegrounds/SeethingShore: Fix crash on player logout --- .../Battlegrounds/SeethingShore/battleground_seething_shore.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/server/scripts/Battlegrounds/SeethingShore/battleground_seething_shore.cpp b/src/server/scripts/Battlegrounds/SeethingShore/battleground_seething_shore.cpp index 282f5fd54ef..f6810ecd7a5 100644 --- a/src/server/scripts/Battlegrounds/SeethingShore/battleground_seething_shore.cpp +++ b/src/server/scripts/Battlegrounds/SeethingShore/battleground_seething_shore.cpp @@ -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) -- cgit v1.2.3