added missing birthsign field to player state record

This commit is contained in:
Marc Zinnschlag 2014-01-17 10:51:52 +01:00
parent c300cd9375
commit ce00639d31
2 changed files with 5 additions and 0 deletions

View file

@ -23,6 +23,8 @@ void ESM::Player::load (ESMReader &esm)
mAutoMove = 0; mAutoMove = 0;
esm.getHNOT (mAutoMove, "AMOV"); esm.getHNOT (mAutoMove, "AMOV");
mBirthsign = esm.getHNString ("SIGN");
} }
void ESM::Player::save (ESMWriter &esm) const void ESM::Player::save (ESMWriter &esm) const
@ -41,4 +43,6 @@ void ESM::Player::save (ESMWriter &esm) const
if (mAutoMove) if (mAutoMove)
esm.writeHNT ("AMOV", mAutoMove); esm.writeHNT ("AMOV", mAutoMove);
esm.writeHNString ("SIGN", mBirthsign);
} }

View file

@ -23,6 +23,7 @@ namespace ESM
ESM::Position mMarkedPosition; ESM::Position mMarkedPosition;
CellId mMarkedCell; CellId mMarkedCell;
unsigned char mAutoMove; unsigned char mAutoMove;
std::string mBirthsign;
void load (ESMReader &esm); void load (ESMReader &esm);
void save (ESMWriter &esm) const; void save (ESMWriter &esm) const;