parse CMSG_CHANGE_SEATS_ON_CONTROLLED_VEHICLE opcode in proper way

--HG--
branch : trunk
This commit is contained in:
silver1ce committed 2010-01-15 19:23:59 +02:00
1 parent b8ea34958c
commit 0451e45e06
2 files changed
+29 -32

No files matched your search

+1 -10
View File
@@ -3252,18 +3252,9 @@ void Unit::_UpdateSpells( uint32 time )
++i;
}
WorldPacket auras;
for (VisibleAuraMap::iterator itr = m_visibleAuras.begin(); itr != m_visibleAuras.end(); ++itr)
if (itr->second->IsNeedClientUpdate())
itr->second->ConstructAuraInfo(auras);
if(auras.wpos())
{
WorldPacket data(SMSG_AURA_UPDATE, GetPackGUID().size() + auras.wpos());
data.append(GetPackGUID());
data.append(auras);
SendMessageToSet(&data, true);
}
itr->second->ClientUpdate();
_DeleteRemovedAuras();