mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[9440] Store in plauer spell list structure instead pointer.
Just not reason in element persistanse storage as std::map store pointer to structure with size < 16 bits.
This commit is contained in:
parent
528b2cf324
commit
6295275529
6 changed files with 71 additions and 80 deletions
|
|
@ -2292,7 +2292,7 @@ void Spell::EffectTriggerSpell(SpellEffectIndex effIndex)
|
|||
for (PlayerSpellMap::const_iterator itr = sp_list.begin(); itr != sp_list.end(); ++itr)
|
||||
{
|
||||
// only highest rank is shown in spell book, so simply check if shown in spell book
|
||||
if (!itr->second->active || itr->second->disabled || itr->second->state == PLAYERSPELL_REMOVED)
|
||||
if (!itr->second.active || itr->second.disabled || itr->second.state == PLAYERSPELL_REMOVED)
|
||||
continue;
|
||||
|
||||
SpellEntry const *spellInfo = sSpellStore.LookupEntry(itr->first);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue