Assume mDeathAnimationFinished is true for older save files

This commit is contained in:
scrawl 2016-06-12 19:42:59 +02:00
parent 63784bfb50
commit 197e81206a

View file

@ -23,6 +23,9 @@ void ESM::CreatureStats::load (ESMReader &esm)
mDeathAnimationFinished = false; mDeathAnimationFinished = false;
esm.getHNOT (mDeathAnimationFinished, "DFNT"); esm.getHNOT (mDeathAnimationFinished, "DFNT");
if (esm.getFormat() < 3 && mDead)
mDeathAnimationFinished = true;
mDied = false; mDied = false;
esm.getHNOT (mDied, "DIED"); esm.getHNOT (mDied, "DIED");