mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-09 13:51:10 +00:00
fix(Core): Memleaks fixes - Part II. (#5760)
This commit is contained in:
@@ -12688,11 +12688,11 @@ void Unit::ApplySpellImmune(uint32 spellId, uint32 op, uint32 type, bool apply,
|
||||
if (spellId == 0 && std::find_if(m_spellImmune[op].begin(), m_spellImmune[op].end(), spellIdImmunityPredicate(type)) != m_spellImmune[op].end())
|
||||
return;
|
||||
|
||||
SpellImmune Immune;
|
||||
Immune.spellId = spellId;
|
||||
Immune.type = type;
|
||||
Immune.blockType = blockType;
|
||||
m_spellImmune[op].push_back(Immune);
|
||||
SpellImmune immune;
|
||||
immune.spellId = spellId;
|
||||
immune.type = type;
|
||||
immune.blockType = blockType;
|
||||
m_spellImmune[op].push_back(std::move(immune));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user