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)
|
if (containerItem.charge > -1)
|
||||||
newPtr.getCellRef().setCharge(containerItem.charge);
|
newPtr.getCellRef().setCharge(containerItem.charge);
|
||||||
|
|
||||||
if (containerItem.enchantmentCharge > -1)
|
if (containerItem.enchantmentCharge > -1.0f)
|
||||||
newPtr.getCellRef().setEnchantmentCharge(containerItem.enchantmentCharge);
|
newPtr.getCellRef().setEnchantmentCharge(containerItem.enchantmentCharge);
|
||||||
|
|
||||||
containerStore.add(newPtr, containerItem.count, ownerPtr, true);
|
containerStore.add(newPtr, containerItem.count, ownerPtr, true);
|
||||||
|
|
|
@ -12,7 +12,7 @@ namespace mwmp
|
||||||
std::string refId;
|
std::string refId;
|
||||||
int count;
|
int count;
|
||||||
int charge;
|
int charge;
|
||||||
double enchantmentCharge;
|
float enchantmentCharge;
|
||||||
|
|
||||||
int actionCount;
|
int actionCount;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue