[Client] Send enchantmentCharge for items added or removed in containers

0.6.2
David Cernat 7 years ago
parent bce3d0eb4c
commit f746958afa

@ -127,6 +127,7 @@ namespace MWGui
containerItem.refId =itemPtr.getCellRef().getRefId();
containerItem.count = itemPtr.getRefData().getCount();
containerItem.charge = itemPtr.getCellRef().getCharge();
containerItem.enchantmentCharge = itemPtr.getCellRef().getEnchantmentCharge();
containerItem.actionCount = count;
worldObject.containerItems.push_back(containerItem);
@ -175,6 +176,7 @@ namespace MWGui
containerItem.count = mDragAndDrop->mDraggedCount;
containerItem.charge = itemPtr.getCellRef().getCharge();
containerItem.enchantmentCharge = itemPtr.getCellRef().getEnchantmentCharge();
worldObject.containerItems.push_back(containerItem);
worldEvent->addObject(worldObject);

Loading…
Cancel
Save