mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +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);
|
uint32 enchants = GetUInt32ValueFromArray(data, visualbase + 1);
|
||||||
for(uint8 enchantSlot = PERM_ENCHANTMENT_SLOT; enchantSlot <= TEMP_ENCHANTMENT_SLOT; ++enchantSlot)
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8159"
|
#define REVISION_NR "8160"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue