summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-04-25 13:10:51 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-04-25 13:10:51 +0300
commit8166a8d8d480d63c645ead7cd81b1b0afda225b4 (patch)
treeb033cf8ca7932af517d068a16e22c1de35fc7500 /indra/newview
parentc008d3e030ca4019e24de9a4831dc36727555fd2 (diff)
SL-19533 Fix a fetch blunder
Diffstat (limited to 'indra/newview')
-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);