mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Battlegrounds/SeethingShore: Fix crash on player logout
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user