summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorymodel.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2009-12-09 13:46:05 -0800
committerTofu Linden <tofu.linden@lindenlab.com>2009-12-09 13:46:05 -0800
commit2554a88ec17998c092368e814254c6ad3928d920 (patch)
tree39d3e0d9abd21f36dee6d96cc02d2cb5dda3867b /indra/newview/llinventorymodel.cpp
parent2af183c51d8911a7242b838394863e2606ed3fe7 (diff)
parent6260ce6a9210192963a77e5b1f44b0d2c2c86591 (diff)
merge!
Diffstat (limited to 'indra/newview/llinventorymodel.cpp')
-rw-r--r--indra/newview/llinventorymodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp
index fb9be1e04f..5d8a8805b5 100644
--- a/indra/newview/llinventorymodel.cpp
+++ b/indra/newview/llinventorymodel.cpp
@@ -192,6 +192,8 @@ void LLInventoryModel::cleanupInventory()
BOOL LLInventoryModel::isObjectDescendentOf(const LLUUID& obj_id,
const LLUUID& cat_id) const
{
+ if (obj_id == cat_id) return TRUE;
+
const LLInventoryObject* obj = getObject(obj_id);
while(obj)
{