fix(inventory): inventory groups keep their locked flag, as the client

LWOInventoryComponent_Common::msgUpdateInventoryGroup (0x00c955b0) stores
the ADD's locked flag in the group; locked groups don't count toward the
50 user groups (msgGetInventoryGroupCount 0x00bde4b0 counts only unlocked
ones) and msgUpdateInventoryGroupContents (0x00ce1f50) applies the
1000-LOT cap only to unlocked groups. LoadFromSaveData (0x00d1ec40) reads
it from the grp element's u attribute. The server dropped the flag and
always saved u="0"; saves without u load as unlocked.

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

View File

@@ -78,6 +78,8 @@ public:
std::string groupName;
// All the lots the user has in the group.
std::set<LOT> lots;
// Locked groups don't count toward MaximumGroupCount and have no LOT cap (saved as u)
bool locked = false;
};
enum class GroupUpdateCommand {
@@ -97,6 +99,7 @@ public:
LOT lot;
eInventoryType inventory;
GroupUpdateCommand command;
bool locked = false;
};
static constexpr uint32_t MaximumGroupCount = 50;