mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 12:39:55 +00:00
Check whether any subrecords remain after skipping moved references. Should resolve bug #2070.
This commit is contained in:
parent
dadc089ddb
commit
33c454e073
@ -182,6 +182,13 @@ bool Cell::getNextRef(ESMReader &esm, CellRef &ref, bool& deleted)
|
|||||||
// That should be it, I haven't seen any other fields yet.
|
// That should be it, I haven't seen any other fields yet.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If moved references are not handled then it is possible that CellRef::load() can lead
|
||||||
|
// to strange results because ESMReader::isNextSub("xxx") will always return false when
|
||||||
|
// there are no more subrecords. When moved references are handled properly by OpenCS
|
||||||
|
// below 2 lines can be removed.
|
||||||
|
if (!esm.hasMoreSubs())
|
||||||
|
return false;
|
||||||
|
|
||||||
ref.load (esm);
|
ref.load (esm);
|
||||||
|
|
||||||
// Identify references belonging to a parent file and adapt the ID accordingly.
|
// Identify references belonging to a parent file and adapt the ID accordingly.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user