Do not write empty trade time

pull/2725/head
Andrei Kortunov 5 years ago
parent 79517f3f42
commit e20d156904

@ -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);

Loading…
Cancel
Save