mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Merge ESM::RefNum and ESM4::FormId
This commit is contained in:
parent
2365ba2ce0
commit
f09a689a4f
127 changed files with 383 additions and 395 deletions
|
@ -18,7 +18,7 @@ namespace ESM
|
|||
mTargetRef = RefNum{};
|
||||
mTargetId = esm.getHNORefId("TARG");
|
||||
if (esm.peekNextSub("FRMR"))
|
||||
mTargetRef.load(esm, true, "FRMR");
|
||||
mTargetRef = esm.getFormId(true, "FRMR");
|
||||
}
|
||||
|
||||
void GlobalScript::save(ESMWriter& esm) const
|
||||
|
@ -34,7 +34,7 @@ namespace ESM
|
|||
{
|
||||
esm.writeHNORefId("TARG", mTargetId);
|
||||
if (mTargetRef.isSet())
|
||||
mTargetRef.save(esm, true, "FRMR");
|
||||
esm.writeFormId(mTargetRef, true, "FRMR");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue