fix crash

This commit is contained in:
luis
2026-03-14 09:10:37 -03:00
parent 1826c9d792
commit b8dd010248
+1 -1
View File
@@ -1655,7 +1655,7 @@ public:
void Visit(std::unordered_map<ObjectGuid, GameObject*>& gameObjectMap)
{
for (auto const& p : gameObjectMap)
if (p.second->IsInWorld())
if (p.second->IsInWorld() && p.second->AI())
p.second->AI()->OnGameEvent(_activate, _eventId);
}