1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-21 18:09:39 +00:00

Do not write empty trade time

This commit is contained in:
Andrei Kortunov 2020-03-17 22:41:33 +04:00
parent 79517f3f42
commit e20d156904

View file

@ -144,7 +144,8 @@ void ESM::CreatureStats::save (ESMWriter &esm) const
if (mGoldPool) if (mGoldPool)
esm.writeHNT ("GOLD", mGoldPool); esm.writeHNT ("GOLD", mGoldPool);
esm.writeHNT ("TIME", mTradeTime); if (mTradeTime.mDay != 0 || mTradeTime.mHour != 0)
esm.writeHNT ("TIME", mTradeTime);
if (mDead) if (mDead)
esm.writeHNT ("DEAD", mDead); esm.writeHNT ("DEAD", mDead);