Core/Logs: Added some more log informations to certain logs
This commit is contained in:
@@ -653,17 +653,21 @@ class ObjectMgr
|
||||
|
||||
PlayerClassInfo const* GetPlayerClassInfo(uint32 class_) const
|
||||
{
|
||||
if (class_ >= MAX_CLASSES) return NULL;
|
||||
if (class_ >= MAX_CLASSES)
|
||||
return NULL;
|
||||
return &playerClassInfo[class_];
|
||||
}
|
||||
void GetPlayerClassLevelInfo(uint32 class_, uint8 level, PlayerClassLevelInfo* info) const;
|
||||
|
||||
PlayerInfo const* GetPlayerInfo(uint32 race, uint32 class_) const
|
||||
{
|
||||
if (race >= MAX_RACES) return NULL;
|
||||
if (class_ >= MAX_CLASSES) return NULL;
|
||||
if (race >= MAX_RACES)
|
||||
return NULL;
|
||||
if (class_ >= MAX_CLASSES)
|
||||
return NULL;
|
||||
PlayerInfo const* info = &playerInfo[race][class_];
|
||||
if (info->displayId_m == 0 || info->displayId_f == 0) return NULL;
|
||||
if (info->displayId_m == 0 || info->displayId_f == 0)
|
||||
return NULL;
|
||||
return info;
|
||||
}
|
||||
void GetPlayerLevelInfo(uint32 race, uint32 class_, uint8 level, PlayerLevelInfo* info) const;
|
||||
|
||||
Reference in New Issue
Block a user