From 231ce9e9bbbbae0c1e1f8aff382ff31936e82621 Mon Sep 17 00:00:00 2001 From: Emagi Date: Fri, 15 Aug 2025 18:19:28 -0400 Subject: [PATCH] break out of the for loop if we successfully find the instance --- source/WorldServer/PlayerGroups.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/WorldServer/PlayerGroups.cpp b/source/WorldServer/PlayerGroups.cpp index 0146a2d..7b6ccee 100644 --- a/source/WorldServer/PlayerGroups.cpp +++ b/source/WorldServer/PlayerGroups.cpp @@ -1928,6 +1928,8 @@ bool PlayerGroupManager::IdentifyMemberInGroupOrRaid(ZoneChangeDetails* details, } else { succeed = zone_list.GetZoneByInstance(details, (*itr)->instance_id, (*itr)->zone_id, true, false); + if(succeed) + break; } } }