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

This commit is contained in:
David Cernat 2018-01-15 06:28:05 +02:00
parent bce3d0eb4c
commit f746958afa

View file

@ -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);