[11260] Add wrapper for creature vistual item set.

This commit is contained in:
VladimirMangos 2011-03-16 20:19:36 +03:00
parent a6d155fc54
commit b588ea9db3
6 changed files with 41 additions and 36 deletions

View file

@ -3726,7 +3726,7 @@ void Spell::WriteAmmoToPacket( WorldPacket * data )
}
else
{
for (uint8 i = 0; i < 3; ++i)
for (uint8 i = 0; i < MAX_VIRTUAL_ITEM_SLOT; ++i)
{
if(uint32 item_id = m_caster->GetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID + i))
{