1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 09:15:38 +00:00

Add NAME handling to Race record

This commit is contained in:
Stanislav Bas 2015-07-07 20:56:26 +03:00
parent b667338a8f
commit 8c3654af11

View file

@ -22,6 +22,8 @@ void Race::load(ESMReader &esm)
{
mPowers.mList.clear();
mId = esm.getHNString("NAME");
bool hasData = false;
while (esm.hasMoreSubs())
{
@ -51,6 +53,7 @@ void Race::load(ESMReader &esm)
}
void Race::save(ESMWriter &esm) const
{
esm.writeHNCString("NAME", mId);
esm.writeHNOCString("FNAM", mName);
esm.writeHNT("RADT", mData, 140);
mPowers.save(esm);