1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 06:23:52 +00:00

Merge pull request #2640 from akortunov/save

Do not store gold-specific value for everything
This commit is contained in:
Alexei Dobrohotov 2019-12-23 21:22:26 +03:00 committed by GitHub
commit dfcc6d8b5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,9 +168,8 @@ void ESM::CellRef::save (ESMWriter &esm, bool wideRefNum, bool inInventory, bool
if (mChargeInt != -1)
esm.writeHNT("INTV", mChargeInt);
if (mGoldValue != 1) {
if (mGoldValue > 1)
esm.writeHNT("NAM9", mGoldValue);
}
if (!inInventory && mTeleport)
{
@ -208,7 +207,7 @@ void ESM::CellRef::blank()
mChargeInt = -1;
mChargeIntRemainder = 0.0f;
mEnchantmentCharge = -1;
mGoldValue = 0;
mGoldValue = 1;
mDestCell.clear();
mLockLevel = 0;
mKey.clear();