mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
!= UUID.Zero is slow
This commit is contained in:
@@ -563,7 +563,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||
foreach (PresenceInfo friendSession in friendSessions)
|
||||
{
|
||||
// let's guard against sessions-gone-bad
|
||||
if (friendSession != null && friendSession.RegionID != UUID.Zero)
|
||||
if (friendSession != null && !friendSession.RegionID.IsZero())
|
||||
{
|
||||
//m_log.DebugFormat("[FRIENDS]: Get region {0}", friendSession.RegionID);
|
||||
GridRegion region = GridService.GetRegionByUUID(m_Scenes[0].RegionInfo.ScopeID, friendSession.RegionID);
|
||||
|
||||
Reference in New Issue
Block a user