Entities/Player: Fixed an edge case bug that could cause a character to get stuck in forced recustomization indefinitely if two or more appearance properties were out of bounds.
This commit is contained in:
1 parent
5b8fa815a7
commit
1fc6f18024
1 file changed
+3
@@ -1639,6 +1639,9 @@ bool Player::BuildEnumData(PreparedQueryResult result, ByteBuffer* dataBuffer, B
|
||||
{
|
||||
TC_LOG_ERROR("entities.player.loading", "Player %s has wrong Appearance values (Hair/Skin/Color), forcing recustomize", guid.ToString().c_str());
|
||||
|
||||
// Make sure customization always works properly - send all zeroes instead
|
||||
skin = 0, face = 0, hairStyle = 0, hairColor = 0, facialStyle = 0;
|
||||
|
||||
if (!(atLoginFlags & AT_LOGIN_CUSTOMIZE))
|
||||
{
|
||||
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPD_ADD_AT_LOGIN_FLAG);
|
||||
|
||||
Reference in new issue
Block a user