@@ -1366,11 +1366,11 @@ bool Player::BuildEnumData(PreparedQueryResult result, WorldPacket* data)
13661366 Field* fields = result->Fetch();
13671367
13681368 ObjectGuid::LowType guid = fields[0].GetUInt32();
1369- uint8 plrRace = fields[2].GetUInt8();
1370- uint8 plrClass = fields[3].GetUInt8();
1369+ uint8 playerRace = fields[2].GetUInt8();
1370+ uint8 playerClass = fields[3].GetUInt8();
13711371 uint8 gender = fields[4].GetUInt8();
13721372
1373- PlayerInfo const* info = sObjectMgr->GetPlayerInfo(plrRace, plrClass );
1373+ PlayerInfo const* info = sObjectMgr->GetPlayerInfo(playerRace, playerClass );
13741374 if (!info)
13751375 {
13761376 TC_LOG_ERROR("entities.player.loading", "Player {} has incorrect race/class pair. Don't build enum.", guid);
@@ -1384,8 +1384,8 @@ bool Player::BuildEnumData(PreparedQueryResult result, WorldPacket* data)
13841384
13851385 *data << ObjectGuid(HighGuid::Player, guid);
13861386 *data << fields[1].GetString(); // name
1387- *data << uint8(plrRace ); // race
1388- *data << uint8(plrClass ); // class
1387+ *data << uint8(playerRace ); // race
1388+ *data << uint8(playerClass ); // class
13891389 *data << uint8(gender); // gender
13901390
13911391 uint8 skin = fields[5].GetUInt8();
@@ -1396,7 +1396,7 @@ bool Player::BuildEnumData(PreparedQueryResult result, WorldPacket* data)
13961396
13971397 uint16 atLoginFlags = fields[18].GetUInt16();
13981398
1399- if (!ValidateAppearance(uint8(plrRace ), uint8(plrClass ), gender, hairStyle, hairColor, face, facialStyle, skin))
1399+ if (!ValidateAppearance(uint8(playerRace ), uint8(playerClass ), gender, hairStyle, hairColor, face, facialStyle, skin))
14001400 {
14011401 TC_LOG_ERROR("entities.player.loading", "Player {} has wrong Appearance values (Hair/Skin/Color), forcing recustomize", guid);
14021402
@@ -1472,7 +1472,7 @@ bool Player::BuildEnumData(PreparedQueryResult result, WorldPacket* data)
14721472 CreatureFamily petFamily = CREATURE_FAMILY_NONE;
14731473
14741474 // show pet at selection character in character list only for non-ghost character
1475- if (result && !(playerFlags & PLAYER_FLAGS_GHOST) && (plrClass == CLASS_WARLOCK || plrClass == CLASS_HUNTER || plrClass == CLASS_DEATH_KNIGHT))
1475+ if (result && !(playerFlags & PLAYER_FLAGS_GHOST) && (playerClass == CLASS_WARLOCK || playerClass == CLASS_HUNTER || playerClass == CLASS_DEATH_KNIGHT))
14761476 {
14771477 uint32 entry = fields[19].GetUInt32();
14781478 CreatureTemplate const* creatureInfo = sObjectMgr->GetCreatureTemplate(entry);
0 commit comments