mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-21 12:37:05 +00:00
[Avoid aoe] Fix crash
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user