[General] Use floats instead of doubles for enchantmentCharge

This commit is contained in:
Koncord 2018-01-19 15:41:29 +08:00
parent 1e25a122c9
commit f1e2bc01f6
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -12,7 +12,7 @@ namespace mwmp
std::string refId;
int count;
int charge;
double enchantmentCharge;
float enchantmentCharge;
int actionCount;