mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 18:39:29 +00:00
Fix older savegame compatibility regarding new crime feature.
This commit is contained in:
parent
65161c3e24
commit
d3d0b7362f
@ -26,8 +26,10 @@ void ESM::Player::load (ESMReader &esm)
|
||||
|
||||
mBirthsign = esm.getHNString ("SIGN");
|
||||
|
||||
esm.getHNT (mCurrentCrimeId, "CURD");
|
||||
esm.getHNT (mPayedCrimeId, "PAYD");
|
||||
mCurrentCrimeId = 0;
|
||||
esm.getHNOT (mCurrentCrimeId, "CURD");
|
||||
mPayedCrimeId = 0;
|
||||
esm.getHNOT (mPayedCrimeId, "PAYD");
|
||||
}
|
||||
|
||||
void ESM::Player::save (ESMWriter &esm) const
|
||||
@ -51,4 +53,4 @@ void ESM::Player::save (ESMWriter &esm) const
|
||||
|
||||
esm.writeHNT ("CURD", mCurrentCrimeId);
|
||||
esm.writeHNT ("PAYD", mPayedCrimeId);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user