Core/Player: Improve a log message

(cherry picked from commit 7eb314fcd16c2265daf0948c6744a9f206da3150)
This commit is contained in:
Carbenium committed 2015-11-10 00:50:15 +01:00
1 parent 52394eb93c
commit 2a36b00907
1 file changed
+2 -3
+2 -3
View File
@@ -21428,7 +21428,7 @@ void Player::InitDisplayIds()
PlayerInfo const* info = sObjectMgr->GetPlayerInfo(getRace(), getClass());
if (!info)
{
TC_LOG_ERROR("entities.player", "Player %u has incorrect race/class pair. Can't init display ids.", GetGUID().GetCounter());
TC_LOG_ERROR("entities.player", "Player %s (%s) has incorrect race/class pair. Can't init display ids.", GetName().c_str(), GetGUID().ToString().c_str());
return;
}
@@ -21444,8 +21444,7 @@ void Player::InitDisplayIds()
SetNativeDisplayId(info->displayId_m);
break;
default:
TC_LOG_ERROR("entities.player", "Invalid gender %u for player", gender);
return;
TC_LOG_ERROR("entities.player", "Player %s (%s) has invalid gender %u", GetName().c_str(), GetGUID().ToString().c_str(), gender);
}
}