mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 22:15:32 +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;
|
mAlarmed = false;
|
||||||
esm.getHNOT (mAlarmed, "ALRM");
|
esm.getHNOT (mAlarmed, "ALRM");
|
||||||
|
|
||||||
|
mAttacked = false;
|
||||||
|
esm.getHNOT (mAttacked, "ATKD");
|
||||||
|
|
||||||
mHostile = false;
|
mHostile = false;
|
||||||
esm.getHNOT (mHostile, "HOST");
|
esm.getHNOT (mHostile, "HOST");
|
||||||
|
|
||||||
|
@ -142,6 +145,9 @@ void ESM::CreatureStats::save (ESMWriter &esm) const
|
||||||
if (mAlarmed)
|
if (mAlarmed)
|
||||||
esm.writeHNT ("ALRM", mAlarmed);
|
esm.writeHNT ("ALRM", mAlarmed);
|
||||||
|
|
||||||
|
if (mAttacked)
|
||||||
|
esm.writeHNT ("ATKD", mAttacked);
|
||||||
|
|
||||||
if (mHostile)
|
if (mHostile)
|
||||||
esm.writeHNT ("HOST", mHostile);
|
esm.writeHNT ("HOST", mHostile);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue