1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:53:53 +00:00

Fix not saved Attacked flag (Fixes #1657)

This commit is contained in:
scrawl 2014-07-16 20:09:42 +02:00
parent 08ce6ed7fb
commit 876af8f529

View file

@ -33,6 +33,9 @@ void ESM::CreatureStats::load (ESMReader &esm)
mAlarmed = false;
esm.getHNOT (mAlarmed, "ALRM");
mAttacked = false;
esm.getHNOT (mAttacked, "ATKD");
mHostile = false;
esm.getHNOT (mHostile, "HOST");
@ -142,6 +145,9 @@ void ESM::CreatureStats::save (ESMWriter &esm) const
if (mAlarmed)
esm.writeHNT ("ALRM", mAlarmed);
if (mAttacked)
esm.writeHNT ("ATKD", mAttacked);
if (mHostile)
esm.writeHNT ("HOST", mHostile);