1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +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)
esm.writeHNT ("GOLD", mGoldPool);
esm.writeHNT ("TIME", mTradeTime);
if (mTradeTime.mDay != 0 || mTradeTime.mHour != 0)
esm.writeHNT ("TIME", mTradeTime);
if (mDead)
esm.writeHNT ("DEAD", mDead);