Use Equals() because yes

This commit is contained in:
Cinder Biscuits
2020-05-09 12:51:59 -05:00
parent 502a62d54f
commit 6d0ff2db02
3 changed files with 11 additions and 13 deletions

View File

@@ -46,7 +46,7 @@ namespace OpenMetaverse.TestClient.Commands.Inventory.Shell
{
if (string.IsNullOrEmpty(nextName) || nextName == ".")
continue; // Ignore '.' and blanks, stay in the current directory.
if (nextName == ".." && currentFolder != Inventory.RootFolder)
if (nextName == ".." && !currentFolder.Equals((InventoryBase) Inventory.RootFolder))
{
// If we encounter .., move to the parent folder.
currentFolder = Inventory[currentFolder.ParentUUID] as InventoryFolder;