mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 08:06:23 +00:00
refactor(Core/Cache): move the GlobalPlayerCache to its own class (#9166)
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "CharacterCache.h"
|
||||
#include "Common.h"
|
||||
#include "DBCStores.h"
|
||||
#include "DisableMgr.h"
|
||||
@@ -1060,11 +1061,11 @@ namespace lfg
|
||||
talents[0] = 0;
|
||||
talents[1] = 0;
|
||||
talents[2] = 0;
|
||||
if (const GlobalPlayerData* gpd = sWorld->GetGlobalPlayerData(mitr->guid.GetCounter()))
|
||||
if (CharacterCacheEntry const* gpd = sCharacterCache->GetCharacterCacheByGuid(mitr->guid))
|
||||
{
|
||||
level = gpd->level;
|
||||
Class = gpd->playerClass;
|
||||
race = gpd->race;
|
||||
level = gpd->Level;
|
||||
Class = gpd->Class;
|
||||
race = gpd->Race;
|
||||
}
|
||||
Player* mplr = ObjectAccessor::FindConnectedPlayer(guid);
|
||||
if (mplr)
|
||||
|
||||
Reference in New Issue
Block a user