Core/Misc: Fix static analysis issues

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

View File

@@ -412,7 +412,8 @@ struct AreaTrigger
struct BroadcastText
{
BroadcastText()
BroadcastText() : Id(0), Language(0), EmoteId0(0), EmoteId1(0), EmoteId2(0),
EmoteDelay0(0), EmoteDelay1(0), EmoteDelay2(0), SoundId(0), Unk1(0), Unk2(0)
{
MaleText.resize(DEFAULT_LOCALE + 1);
FemaleText.resize(DEFAULT_LOCALE + 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