From 95f0768a8ba1061d336c2496ba7cd96cb85e5afd Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Fri, 6 Sep 2024 20:51:36 +0800 Subject: [PATCH] Fix avoid aoe crash --- src/strategy/values/NearestGameObjects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }