forked from teamnwah/openmw-tes3coop
[General] Use floats instead of doubles for enchantmentCharge
This commit is contained in:
parent
1e25a122c9
commit
f1e2bc01f6
2 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ void WorldEvent::editContainers(MWWorld::CellStore* cellStore)
|
|||
if (containerItem.charge > -1)
|
||||
newPtr.getCellRef().setCharge(containerItem.charge);
|
||||
|
||||
if (containerItem.enchantmentCharge > -1)
|
||||
if (containerItem.enchantmentCharge > -1.0f)
|
||||
newPtr.getCellRef().setEnchantmentCharge(containerItem.enchantmentCharge);
|
||||
|
||||
containerStore.add(newPtr, containerItem.count, ownerPtr, true);
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace mwmp
|
|||
std::string refId;
|
||||
int count;
|
||||
int charge;
|
||||
double enchantmentCharge;
|
||||
float enchantmentCharge;
|
||||
|
||||
int actionCount;
|
||||
|
||||
|
|
Loading…
Reference in a new issue