mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 21:26:23 +00:00
fix(Core/Misc): bunch of crashfixes (#7307)
This commit is contained in:
@@ -2665,10 +2665,8 @@ void SpellMgr::LoadSpellInfoStore()
|
||||
void SpellMgr::UnloadSpellInfoStore()
|
||||
{
|
||||
for (uint32 i = 0; i < mSpellInfoMap.size(); ++i)
|
||||
{
|
||||
if (mSpellInfoMap[i])
|
||||
delete mSpellInfoMap[i];
|
||||
}
|
||||
delete mSpellInfoMap[i];
|
||||
|
||||
mSpellInfoMap.clear();
|
||||
}
|
||||
|
||||
@@ -3282,6 +3280,7 @@ void SpellMgr::LoadSpellCustomAttr()
|
||||
spellInfo->Effects[EFFECT_0].MiscValue = 127;
|
||||
break;
|
||||
}
|
||||
spellInfo->_InitializeExplicitTargetMask();
|
||||
}
|
||||
|
||||
// Xinef: addition for binary spells, ommit spells triggering other spells
|
||||
|
||||
Reference in New Issue
Block a user