diff --git a/src/strategy/values/NearestGameObjects.cpp b/src/strategy/values/NearestGameObjects.cpp index 29b3e45a..a600bc65 100644 --- a/src/strategy/values/NearestGameObjects.cpp +++ b/src/strategy/values/NearestGameObjects.cpp @@ -77,7 +77,7 @@ GuidVector NearestTrapWithDamageValue::Calculate() continue; } const SpellInfo* spellInfo = sSpellMgr->GetSpellInfo(spellId); - if (spellInfo->IsPositive()) + if (!spellInfo || spellInfo->IsPositive()) { continue; }