From e20d15690411af6d9215bce33ed338822560329a Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Tue, 17 Mar 2020 22:41:33 +0400 Subject: [PATCH] Do not write empty trade time --- components/esm/creaturestats.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/esm/creaturestats.cpp b/components/esm/creaturestats.cpp index beb2c4c64c..d337b14349 100644 --- a/components/esm/creaturestats.cpp +++ b/components/esm/creaturestats.cpp @@ -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);