diff --git a/apps/openmw/mwworld/cellref.cpp b/apps/openmw/mwworld/cellref.cpp index 9180e9e20..72ee56e6a 100644 --- a/apps/openmw/mwworld/cellref.cpp +++ b/apps/openmw/mwworld/cellref.cpp @@ -107,7 +107,6 @@ namespace MWWorld { mCellRef.mChargeInt -= static_cast(mCellRef.mChargeIntRemainder); } - mCellRef.mChargeIntRemainder = newChargeRemainder; } } diff --git a/apps/openmw/mwworld/cellref.hpp b/apps/openmw/mwworld/cellref.hpp index c8c4529e9..7e27e6ef3 100644 --- a/apps/openmw/mwworld/cellref.hpp +++ b/apps/openmw/mwworld/cellref.hpp @@ -65,7 +65,7 @@ namespace MWWorld float getChargeFloat() const; // Implemented as union with int charge void setCharge(int charge); void setChargeFloat(float charge); - void applyChargeRemainderToBeSubtracted(float chargeRemainder); + void applyChargeRemainderToBeSubtracted(float chargeRemainder); // Stores remainders and applies if > 1 // The NPC that owns this object (and will get angry if you steal it) std::string getOwner() const; diff --git a/components/esm/cellref.hpp b/components/esm/cellref.hpp index a3c56cf13..f14617531 100644 --- a/components/esm/cellref.hpp +++ b/components/esm/cellref.hpp @@ -69,7 +69,7 @@ namespace ESM int mChargeInt; // Used by everything except lights float mChargeFloat; // Used only by lights }; - float mChargeIntRemainder; // Used by everythign except lights (amount of charge not applied to mChargeInt) + float mChargeIntRemainder; // Stores amount of charge not subtracted from mChargeInt // Remaining enchantment charge. This could be -1 if the charge was not touched yet (i.e. full). float mEnchantmentCharge;