[7835] Store structures (with size = uint32) insteed pointer to structure in PetSpellMap.

This commit is contained in:
VladimirMangos 2009-05-15 17:19:46 +04:00
parent 6aacc45ace
commit 7a7ee86f97
4 changed files with 57 additions and 68 deletions

View file

@ -16397,11 +16397,11 @@ void Player::PetSpellInitialize()
// spells loop
for (PetSpellMap::const_iterator itr = pet->m_spells.begin(); itr != pet->m_spells.end(); ++itr)
{
if(itr->second->state == PETSPELL_REMOVED)
if(itr->second.state == PETSPELL_REMOVED)
continue;
data << uint16(itr->first);
data << uint16(itr->second->active); // pet spell active state isn't boolean
data << uint16(itr->second.active); // pet spell active state isn't boolean
++addlist;
}
}