From 8166a8d8d480d63c645ead7cd81b1b0afda225b4 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Tue, 25 Apr 2023 13:10:51 +0300 Subject: SL-19533 Fix a fetch blunder --- indra/newview/llaisapi.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'indra/newview/llaisapi.cpp') 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); -- cgit v1.2.3