Merge pull request #2725 from akortunov/factions

Do not write empty trade time
pull/2726/head
Bret Curtis 5 years ago committed by GitHub
commit d8e1a6b286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save