summaryrefslogtreecommitdiff
path: root/indra/newview/llfolderviewmodelinventory.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2015-04-13 15:29:56 -0700
committerMerov Linden <merov@lindenlab.com>2015-04-13 15:29:56 -0700
commit637e096d5718d0a174b5383aa29e3480edd734ea (patch)
treed7ad5d848ab9c3448f8f0a4d80b74ab1bc743893 /indra/newview/llfolderviewmodelinventory.cpp
parenta9c3681cb5eecc043dab3f5c9dc9d97bc1af1075 (diff)
DD-388 : More resilient way of reacting to not evaluated stock count throughout marketplace handling
Diffstat (limited to 'indra/newview/llfolderviewmodelinventory.cpp')
-rwxr-xr-xindra/newview/llfolderviewmodelinventory.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/llfolderviewmodelinventory.cpp b/indra/newview/llfolderviewmodelinventory.cpp
index 8c360befc3..44eda4d6c0 100755
--- a/indra/newview/llfolderviewmodelinventory.cpp
+++ b/indra/newview/llfolderviewmodelinventory.cpp
@@ -319,14 +319,14 @@ bool LLInventorySort::operator()(const LLFolderViewModelItemInventory* const& a,
// Equal weight -> use alphabetical order
return (LLStringUtil::compareDict(a->getDisplayName(), b->getDisplayName()) < 0);
}
- else if (weight_a == -1)
+ else if (weight_a == COMPUTE_STOCK_INFINITE)
{
- // No weight -> move a at the end of the list
+ // No stock -> move a at the end of the list
return false;
}
- else if (weight_b == -1)
+ else if (weight_b == COMPUTE_STOCK_INFINITE)
{
- // No weight -> move b at the end of the list
+ // No stock -> move b at the end of the list
return true;
}
else