fix crash
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user