mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
[Avoid aoe] Fix crash
This commit is contained in:
parent
a2db0e3ad1
commit
ec04b28a95
@ -1595,7 +1595,7 @@ bool AvoidAoeAction::AvoidGameObjectWithDamage()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const SpellInfo* spellInfo = sSpellMgr->GetSpellInfo(spellId);
|
const SpellInfo* spellInfo = sSpellMgr->GetSpellInfo(spellId);
|
||||||
if (spellInfo->IsPositive()) {
|
if (!spellInfo || spellInfo->IsPositive()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
float radius = (float)goInfo->trap.diameter / 2;
|
float radius = (float)goInfo->trap.diameter / 2;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user