mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[8160] Now finally correct extraction uint16 enchantment id from uint32.
This commit is contained in:
parent
fcc1acfa83
commit
aed2a9f9b3
2 changed files with 7 additions and 2 deletions
|
|
@ -1494,7 +1494,12 @@ bool Player::BuildEnumData( QueryResult * result, WorldPacket * p_data )
|
|||
uint32 enchants = GetUInt32ValueFromArray(data, visualbase + 1);
|
||||
for(uint8 enchantSlot = PERM_ENCHANTMENT_SLOT; enchantSlot <= TEMP_ENCHANTMENT_SLOT; ++enchantSlot)
|
||||
{
|
||||
if(enchant = sSpellItemEnchantmentStore.LookupEntry(enchants >> enchantSlot*16))
|
||||
// values stored in 2 uint16
|
||||
uint32 enchantId = 0x0000FFFF & (enchants >> enchantSlot*16);
|
||||
if(!enchantId)
|
||||
continue;
|
||||
|
||||
if(enchant = sSpellItemEnchantmentStore.LookupEntry(enchantId))
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue