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
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user