mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 22:15:32 +00:00
Add NAME handling to Race record
(cherry picked from commit 8c3654af11
)
This commit is contained in:
parent
7dc0c9138f
commit
4f1601fe0d
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,8 @@ void Race::load(ESMReader &esm)
|
||||||
{
|
{
|
||||||
mPowers.mList.clear();
|
mPowers.mList.clear();
|
||||||
|
|
||||||
|
mId = esm.getHNString("NAME");
|
||||||
|
|
||||||
bool hasData = false;
|
bool hasData = false;
|
||||||
while (esm.hasMoreSubs())
|
while (esm.hasMoreSubs())
|
||||||
{
|
{
|
||||||
|
@ -51,6 +53,7 @@ void Race::load(ESMReader &esm)
|
||||||
}
|
}
|
||||||
void Race::save(ESMWriter &esm) const
|
void Race::save(ESMWriter &esm) const
|
||||||
{
|
{
|
||||||
|
esm.writeHNCString("NAME", mId);
|
||||||
esm.writeHNOCString("FNAM", mName);
|
esm.writeHNOCString("FNAM", mName);
|
||||||
esm.writeHNT("RADT", mData, 140);
|
esm.writeHNT("RADT", mData, 140);
|
||||||
mPowers.save(esm);
|
mPowers.save(esm);
|
||||||
|
|
Loading…
Reference in a new issue