fix(inventory): an inventory group holds at most 1000 LOTs, as the client

LWOInventoryComponent_Common::msgUpdateInventoryGroupContents (0x00ce1f50)
ignores an ADD to an unlocked group that already holds 1000 LOTs. The
server had no cap, so a modified client could grow the charxml without
limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-02 10:31:02 -05:00
parent 042594e3dd
commit 841004e6a4
3 changed files with 11 additions and 0 deletions

View File

@@ -2021,6 +2021,8 @@ void InventoryComponent::UpdateGroup(const GroupUpdate& groupUpdate) {
break;
}
case GroupUpdateCommand::ADD_LOT: {
// msgUpdateInventoryGroupContents (0x00ce1f50): a group holds at most 1000 LOTs
if (groupItr->lots.size() >= MaximumGroupLotCount) break;
groupItr->lots.insert(groupUpdate.lot);
break;
}