[Avoid aoe] Fix crash

This commit is contained in:
Yunfan Li
2024-07-24 23:47:24 +08:00
parent a2db0e3ad1
commit ec04b28a95

View File

@@ -1595,7 +1595,7 @@ bool AvoidAoeAction::AvoidGameObjectWithDamage()
continue;
}
const SpellInfo* spellInfo = sSpellMgr->GetSpellInfo(spellId);
if (spellInfo->IsPositive()) {
if (!spellInfo || spellInfo->IsPositive()) {
continue;
}
float radius = (float)goInfo->trap.diameter / 2;