Change IsRoot to use ReferenceEquals to prevent operator == messiness

avinationmerge
Melanie 2013-01-09 20:07:21 +01:00
parent b70d50edf2
commit 949da1d4af
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ namespace OpenSim.Region.Framework.Scenes
/// </remarks> /// </remarks>
public bool IsRoot public bool IsRoot
{ {
get { return ParentGroup.RootPart == this; } get { return Object.ReferenceEquals(ParentGroup.RootPart, this); }
} }
/// <summary> /// <summary>