mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Merge pull request #2725 from akortunov/factions
Do not write empty trade time
This commit is contained in:
commit
d8e1a6b286
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue