mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Fix loading of some cells in TR
This commit is contained in:
parent
758d989a03
commit
d086346b07
@ -153,6 +153,14 @@ bool Cell::getNextRef(ESMReader &esm, CellRef &ref)
|
|||||||
// That should be it, I haven't seen any other fields yet.
|
// That should be it, I haven't seen any other fields yet.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NAM0 sometimes appears here, sometimes further on
|
||||||
|
ref.mNam0 = 0;
|
||||||
|
if (esm.isNextSub("NAM0"))
|
||||||
|
{
|
||||||
|
esm.getHT(ref.mNam0);
|
||||||
|
//esm.getHNOT(NAM0, "NAM0");
|
||||||
|
}
|
||||||
|
|
||||||
esm.getHNT(ref.mRefnum, "FRMR");
|
esm.getHNT(ref.mRefnum, "FRMR");
|
||||||
ref.mRefID = esm.getHNString("NAME");
|
ref.mRefID = esm.getHNString("NAME");
|
||||||
|
|
||||||
@ -243,7 +251,6 @@ bool Cell::getNextRef(ESMReader &esm, CellRef &ref)
|
|||||||
// Update: Well, maybe not completely useless. This might actually be
|
// Update: Well, maybe not completely useless. This might actually be
|
||||||
// number_of_references + number_of_references_moved_here_Across_boundaries,
|
// number_of_references + number_of_references_moved_here_Across_boundaries,
|
||||||
// and could be helpful for collecting these weird moved references.
|
// and could be helpful for collecting these weird moved references.
|
||||||
ref.mNam0 = 0;
|
|
||||||
if (esm.isNextSub("NAM0"))
|
if (esm.isNextSub("NAM0"))
|
||||||
{
|
{
|
||||||
esm.getHT(ref.mNam0);
|
esm.getHT(ref.mNam0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user