TrinityCore/TrinityCore — comment on commit 1a1d8a100becd59f6d5ca1c2371a4e4e58ea6503
File: src/server/game/Server/Protocol/Handlers/CharacterHandler.cpp line 1803
By wilds:

better: if (uint32 guildId = Player::GetGuildIdFromDB(guid))