Fix avoid aoe crash

This commit is contained in:
Yunfan Li
2024-09-06 20:51:36 +08:00
parent f20d3aea6c
commit 95f0768a8b

View File

@@ -77,7 +77,7 @@ GuidVector NearestTrapWithDamageValue::Calculate()
continue;
}
const SpellInfo* spellInfo = sSpellMgr->GetSpellInfo(spellId);
if (spellInfo->IsPositive())
if (!spellInfo || spellInfo->IsPositive())
{
continue;
}