Core/Misc: Fix issues reported by static analysis
Coverity defect IDs: 1227510, 1227434, 1023036, 1062426, 1062425, 1062424, 1062423, 1062422
This commit is contained in:
1 parent
5f77145f49
commit
d23538ce56
4 files changed
+49
-18
No files matched your search
@@ -5880,7 +5880,7 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere
|
||||
if (dummySpell->SpellIconID == 2218)
|
||||
{
|
||||
// Proc only from Abolish desease on self cast
|
||||
if (procSpell->Id != 552 || victim != this || !roll_chance_i(triggerAmount))
|
||||
if (!procSpell || procSpell->Id != 552 || victim != this || !roll_chance_i(triggerAmount))
|
||||
return false;
|
||||
triggered_spell_id = 64136;
|
||||
target = this;
|
||||
@@ -14173,6 +14173,7 @@ void Unit::ProcDamageAndSpellFor(bool isVictim, Unit* target, uint32 procFlag, u
|
||||
uint32 Id = i->aura->GetId();
|
||||
|
||||
AuraApplication* aurApp = i->aura->GetApplicationOfTarget(GetGUID());
|
||||
ASSERT(aurApp);
|
||||
|
||||
bool prepare = i->aura->CallScriptPrepareProcHandlers(aurApp, eventInfo);
|
||||
|
||||
|
||||
Reference in new issue
Block a user