mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Core/Gridnotifiers: Fix a possible crash in MessageDistDeliverer::SendPacket
Updates issue #5016 Please try to re-reproduce --HG-- branch : trunk
This commit is contained in:
@@ -146,7 +146,8 @@ namespace Trinity
|
||||
if (!plr->HaveAtClient(i_source))
|
||||
return;
|
||||
|
||||
plr->GetSession()->SendPacket(i_message);
|
||||
if (WorldSession* session = plr->GetSession())
|
||||
session->SendPacket(i_message);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user