diff options
author | Brad Linden <46733234+brad-linden@users.noreply.github.com> | 2024-08-02 16:00:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-02 16:00:01 -0700 |
commit | fcaf6ff829081a33630410f914706f30e04f207c (patch) | |
tree | dd07fc45e2b76453d1aa7393d94f8a93a4493514 | |
parent | 002be0f24321164a74ef2a88c656b7cb0968c7d3 (diff) | |
parent | 897525f67414f24230e410845193d336d9dece54 (diff) |
Merge pull request #2184 from Ansariel/altasaurus_underflow
Fix integer underflow causing issues with wearables
-rw-r--r-- | indra/newview/llappearancemgr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index 9dd23a5319..6411be3d4f 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -2133,11 +2133,11 @@ void LLAppearanceMgr::filterWearableItems( items.clear(); for (S32 i=0; i<LLWearableType::WT_COUNT; i++) { - auto size = items_by_type[i].size(); + S32 size = (S32)items_by_type[i].size(); if (size <= 0) continue; - auto start_index = llmax(0,size-max_per_type); - for (size_t j = start_index; j<size; j++) + S32 start_index = llmax(0,size-max_per_type); + for (S32 j = start_index; j<size; j++) { items.push_back(items_by_type[i][j]); } |