forked from mirror/openmw-tes3mp
[Client] Send enchantmentCharge for items added or removed in containers
This commit is contained in:
parent
bce3d0eb4c
commit
f746958afa
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue