Core/Spells: Fix a possible crash in spell_hun_readiness_SpellScript
--HG-- branch : trunk
This commit is contained in:
@@ -275,7 +275,9 @@ public:
|
|||||||
{
|
{
|
||||||
SpellEntry const *spellInfo = sSpellStore.LookupEntry(itr->first);
|
SpellEntry const *spellInfo = sSpellStore.LookupEntry(itr->first);
|
||||||
|
|
||||||
if (spellInfo->SpellFamilyName == SPELLFAMILY_HUNTER &&
|
///! If spellId in cooldown map isn't valid, the above will return a null pointer.
|
||||||
|
if (spellInfo &&
|
||||||
|
spellInfo->SpellFamilyName == SPELLFAMILY_HUNTER &&
|
||||||
spellInfo->Id != HUNTER_SPELL_READINESS &&
|
spellInfo->Id != HUNTER_SPELL_READINESS &&
|
||||||
spellInfo->Id != HUNTER_SPELL_BESTIAL_WRATH &&
|
spellInfo->Id != HUNTER_SPELL_BESTIAL_WRATH &&
|
||||||
GetSpellRecoveryTime(spellInfo) > 0)
|
GetSpellRecoveryTime(spellInfo) > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user