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 -1
View File
@@ -23,6 +23,7 @@ Category: commandscripts
EndScriptData */
#include "AccountMgr.h"
#include "CharacterCache.h"
#include "Chat.h"
#include "Language.h"
#include "ObjectAccessor.h"
@@ -307,7 +308,7 @@ public:
if (!target)
{
ObjectGuid fullGuid = sWorld->GetCharacterGuidByName(name);
ObjectGuid fullGuid = sCharacterCache->GetCharacterGuidByName(name);
if (fullGuid.IsEmpty())
{
handler->SendSysMessage(LANG_BANINFO_NOCHARACTER);