mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/GuildFinder: fixed a crash when trying to list a guild which was stored as listed but no longer exists
This commit is contained in:
@@ -119,6 +119,8 @@ void WorldSession::HandleGuildFinderBrowse(WorldPacket& recvPacket)
|
||||
{
|
||||
LFGuildSettings guildSettings = itr->second;
|
||||
Guild* guild = sGuildMgr->GetGuildById(itr->first);
|
||||
if (!guild)
|
||||
continue;
|
||||
|
||||
ObjectGuid guildGUID = ObjectGuid(guild->GetGUID());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user