Core/Misc: Moved CharacterInfo out of world to separate class
This commit is contained in:
1 parent
5373e2bd3b
commit
5e1a7bcfbb
43 files changed
+520
-391
No files matched your search
@@ -452,10 +452,10 @@ void WorldSession::HandleCalendarEventInvite(WorldPacket& recvData)
|
||||
else
|
||||
{
|
||||
// Invitee offline, get data from storage
|
||||
ObjectGuid guid = sWorld->GetCharacterGuidByName(name);
|
||||
ObjectGuid guid = sCharacterCache->GetCharacterGuidByName(name);
|
||||
if (!guid.IsEmpty())
|
||||
{
|
||||
if (CharacterInfo const* characterInfo = sWorld->GetCharacterInfo(guid))
|
||||
if (CharacterCacheEntry const* characterInfo = sCharacterCache->GetCharacterCacheByGuid(guid))
|
||||
{
|
||||
inviteeGuid = guid;
|
||||
inviteeTeam = Player::TeamForRace(characterInfo->Race);
|
||||
|
||||
Reference in new issue
Block a user