aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGolrag <golrag.jeremy@gmail.com>2025-05-24 09:53:57 +0200
committerGolrag <golrag.jeremy@gmail.com>2025-05-24 09:53:57 +0200
commitdc4740cbb749a36855d8d932ef746112ed18a3ad (patch)
tree171f38fd3622e8f7327d6809a78ab5c0dab4f714 /src
parent286f5c9d031fb8722b6e9f9eafa124d985cec64b (diff)
Battlegrounds/SeethingShore: Fix crash on player logout
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Battlegrounds/SeethingShore/battleground_seething_shore.cpp3
1 files changed, 3 insertions, 0 deletions
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)