Change IsRoot to use ReferenceEquals to prevent operator == messiness
parent
b70d50edf2
commit
949da1d4af
|
@ -144,7 +144,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
/// </remarks>
|
||||
public bool IsRoot
|
||||
{
|
||||
get { return ParentGroup.RootPart == this; }
|
||||
get { return Object.ReferenceEquals(ParentGroup.RootPart, this); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue