diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-06-29 00:23:21 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-06-29 00:23:21 +0200 |
| commit | 5334467f493eb16141f4ad0bce956bc3e19244a0 (patch) | |
| tree | c36dd66d4484771ac3553effa08f975cfdc0c03f /src/server/scripts/ExilesReach | |
| parent | 62ac0d4a1c363e3088773e589264ddf33958c183 (diff) | |
Scripts: Fixed possible crashes caused by passing nullptr to Trinity::WorldObjectListSearcher constructor
Diffstat (limited to 'src/server/scripts/ExilesReach')
| -rw-r--r-- | src/server/scripts/ExilesReach/zone_exiles_reach.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/ExilesReach/zone_exiles_reach.cpp b/src/server/scripts/ExilesReach/zone_exiles_reach.cpp index e1b0033f523..7eb00fabbb8 100644 --- a/src/server/scripts/ExilesReach/zone_exiles_reach.cpp +++ b/src/server/scripts/ExilesReach/zone_exiles_reach.cpp @@ -4647,8 +4647,8 @@ struct at_briarpatch_to_plains : AreaTriggerAI std::vector<WorldObject*> objs; Trinity::ObjectEntryAndPrivateOwnerIfExistsCheck check(player->GetGUID(), conversationId); - Trinity::WorldObjectListSearcher<Trinity::ObjectEntryAndPrivateOwnerIfExistsCheck> checker(nullptr, objs, check, GRID_MAP_TYPE_MASK_CONVERSATION); - Cell::VisitGridObjects(player, checker, 100.0f); + Trinity::WorldObjectListSearcher searcher(PhasingHandler::GetAlwaysVisiblePhaseShift(), objs, check, GRID_MAP_TYPE_MASK_CONVERSATION); + Cell::VisitGridObjects(player, searcher, 100.0f); if (objs.empty()) Conversation::CreateConversation(conversationId, player, *player, player->GetGUID(), nullptr); |
