mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Fixed some comparisons of LLUUIDs to null.
Thanks to DrSchofld for pointing this out.
This commit is contained in:
@@ -439,17 +439,15 @@ namespace OpenSim.Framework.UserManagement
|
||||
userAgent.agentOnline = false;
|
||||
userAgent.logoutTime = Util.UnixTimeSinceEpoch();
|
||||
//userAgent.sessionID = LLUUID.Zero;
|
||||
if (regionid != null)
|
||||
if (regionid != LLUUID.Zero)
|
||||
{
|
||||
userAgent.currentRegion = regionid;
|
||||
}
|
||||
|
||||
userAgent.currentHandle = regionhandle;
|
||||
|
||||
userAgent.currentPos = currentPos;
|
||||
|
||||
userProfile.currentAgent = userAgent;
|
||||
|
||||
|
||||
CommitAgent(ref userProfile);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -359,7 +359,7 @@ namespace OpenSim.Framework
|
||||
|
||||
public bool shouldMasterAvatarDetailsBeAsked(string configuration_key)
|
||||
{
|
||||
if (MasterAvatarAssignedUUID.Equals(null) || MasterAvatarAssignedUUID.ToString() == LLUUID.Zero.ToString())
|
||||
if (MasterAvatarAssignedUUID == LLUUID.Zero)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user