Core/Misc: Fix static analysis issues

This commit is contained in:
jackpoz committed 2014-05-02 23:21:37 +02:00
1 parent 1be3a2bdf5
commit 3e0d2e4944
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -821,7 +821,7 @@ bool SpellMgr::IsSpellProcEventCanTriggeredBy(SpellProcEventEntry const* spellPr
if (EventProcFlag == PROC_FLAG_DONE_PERIODIC)
{
/// no aura with only PROC_FLAG_DONE_PERIODIC and spellFamilyName == 0 can proc from a HOT.
if (!spellProcEvent->spellFamilyName)
if (!spellProcEvent || !spellProcEvent->spellFamilyName)
return false;
}
/// Aura must have positive procflags for a HOT to proc