mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-17 09:15:28 +00:00
fix(inventory): the charxml's items element has nn="1", as live
Live charxmls carried <items nn="1"> (225 of 226 captured). LWOInventoryComponent_Common::LoadFromSaveData (0x00d1ec40) reads it and then does not add the inventory component's template items to the loaded character. No effect on players today (the player LOT's inventory component has no items); the server never wrote it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -93,3 +93,9 @@ TEST_F(InventorySaveTests, ItemTakenOffInBuildModeIsStillSavedEquipped) {
|
||||
|
||||
EXPECT_TRUE(SavedEquipped(hat->GetId()));
|
||||
}
|
||||
|
||||
// Live charxmls have <items nn="1">
|
||||
TEST_F(InventorySaveTests, ItemsAreSavedWithNn) {
|
||||
inventory->WriteSaveData(doc);
|
||||
EXPECT_STREQ(doc.FirstChildElement("obj")->FirstChildElement("inv")->FirstChildElement("items")->Attribute("nn"), "1");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user