Core/Logs: Added some more log informations to certain logs

This commit is contained in:
Lopin
2011-08-24 13:37:05 +02:00
parent 1965616baa
commit 0c410bda43
3 changed files with 11 additions and 7 deletions
+8 -4
View File
@@ -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;