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:
parent
08ce6ed7fb
commit
876af8f529
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue