mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
Use PLAYER_BYTES_3 instead of gender to avoid displayid problems
- This fix night elfs corpse turning into a cube
This commit is contained in:
@@ -5297,7 +5297,7 @@ void Player::CreateCorpse()
|
||||
uint8 haircolor = (uint8)(_pb >> 24);
|
||||
uint8 facialhair = (uint8)(_pb2);
|
||||
|
||||
_cfb1 = ((0x00) | (race << 8) | (getGender() << 16) | (skin << 24));
|
||||
_cfb1 = ((0x00) | (race << 8) | (GetByteValue(PLAYER_BYTES_3, 0) << 16) | (skin << 24));
|
||||
_cfb2 = ((face) | (hairstyle << 8) | (haircolor << 16) | (facialhair << 24));
|
||||
|
||||
corpse->SetUInt32Value(CORPSE_FIELD_BYTES_1, _cfb1);
|
||||
|
||||
Reference in New Issue
Block a user