Fix not saved Attacked flag (Fixes #1657)

deque
scrawl 11 years ago
parent 08ce6ed7fb
commit 876af8f529

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

Loading…
Cancel
Save