Core/Misc: Fix static analysis issues
This commit is contained in:
1 parent
1be3a2bdf5
commit
3e0d2e4944
2 files changed
+3
-2
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user