mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
Fix avoid aoe crash
This commit is contained in:
parent
f20d3aea6c
commit
95f0768a8b
@ -77,7 +77,7 @@ GuidVector NearestTrapWithDamageValue::Calculate()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const SpellInfo* spellInfo = sSpellMgr->GetSpellInfo(spellId);
|
const SpellInfo* spellInfo = sSpellMgr->GetSpellInfo(spellId);
|
||||||
if (spellInfo->IsPositive())
|
if (!spellInfo || spellInfo->IsPositive())
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user