1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-13 04:11:32 +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,6 +144,7 @@ void ESM::CreatureStats::save (ESMWriter &esm) const
if (mGoldPool) if (mGoldPool)
esm.writeHNT ("GOLD", mGoldPool); esm.writeHNT ("GOLD", mGoldPool);
if (mTradeTime.mDay != 0 || mTradeTime.mHour != 0)
esm.writeHNT ("TIME", mTradeTime); esm.writeHNT ("TIME", mTradeTime);
if (mDead) if (mDead)