summaryrefslogtreecommitdiff
path: root/indra/newview/llaisapi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llaisapi.cpp')
-rw-r--r--indra/newview/llaisapi.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llaisapi.cpp b/indra/newview/llaisapi.cpp
index 7c293fcf63..e16029f063 100644
--- a/indra/newview/llaisapi.cpp
+++ b/indra/newview/llaisapi.cpp
@@ -462,7 +462,7 @@ void AISAPI::FetchCategoryChildren(const LLUUID &catId, ITEM_TYPE type, bool rec
}
else
{
- depth = llmax(depth, 50);
+ depth = llmin(depth, 50);
}
url += "?depth=" + std::to_string(depth);
@@ -515,7 +515,7 @@ void AISAPI::FetchCategoryChildren(const std::string &identifier, bool recursive
}
else
{
- depth = llmax(depth, 50);
+ depth = llmin(depth, 50);
}
url += "?depth=" + std::to_string(depth);
@@ -566,7 +566,7 @@ void AISAPI::FetchCategoryCategories(const LLUUID &catId, ITEM_TYPE type, bool r
}
else
{
- depth = llmax(depth, 50);
+ depth = llmin(depth, 50);
}
url += "?depth=" + std::to_string(depth);