mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 20:23:54 +00:00
Do not store gold-specific value for everything
This commit is contained in:
parent
2f133000e0
commit
24044b08e0
1 changed files with 2 additions and 3 deletions
|
@ -168,9 +168,8 @@ void ESM::CellRef::save (ESMWriter &esm, bool wideRefNum, bool inInventory, bool
|
||||||
if (mChargeInt != -1)
|
if (mChargeInt != -1)
|
||||||
esm.writeHNT("INTV", mChargeInt);
|
esm.writeHNT("INTV", mChargeInt);
|
||||||
|
|
||||||
if (mGoldValue != 1) {
|
if (mGoldValue > 1)
|
||||||
esm.writeHNT("NAM9", mGoldValue);
|
esm.writeHNT("NAM9", mGoldValue);
|
||||||
}
|
|
||||||
|
|
||||||
if (!inInventory && mTeleport)
|
if (!inInventory && mTeleport)
|
||||||
{
|
{
|
||||||
|
@ -208,7 +207,7 @@ void ESM::CellRef::blank()
|
||||||
mChargeInt = -1;
|
mChargeInt = -1;
|
||||||
mChargeIntRemainder = 0.0f;
|
mChargeIntRemainder = 0.0f;
|
||||||
mEnchantmentCharge = -1;
|
mEnchantmentCharge = -1;
|
||||||
mGoldValue = 0;
|
mGoldValue = 1;
|
||||||
mDestCell.clear();
|
mDestCell.clear();
|
||||||
mLockLevel = 0;
|
mLockLevel = 0;
|
||||||
mKey.clear();
|
mKey.clear();
|
||||||
|
|
Loading…
Reference in a new issue