mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Do not write empty trade time
This commit is contained in:
parent
79517f3f42
commit
e20d156904
@ -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 New Issue
Block a user