Core/Misc: Moved CharacterInfo out of world to separate class

This commit is contained in:
Aokromes committed 2017-10-27 17:52:30 +02:00
1 parent 5373e2bd3b
commit 5e1a7bcfbb
43 files changed
+520 -391

No files matched your search

+2 -2
View File
@@ -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);