forked from mirror/openmw-tes3mp
keep original cell field empty, if reference is in modified
This commit is contained in:
parent
e32402a040
commit
320b994aef
1 changed files with 4 additions and 1 deletions
|
@ -23,10 +23,13 @@ void CSMWorld::RefCollection::load (ESM::ESMReader& reader, int cellIndex, bool
|
|||
|
||||
while (ESM::Cell::getNextRef (reader, ref, deleted))
|
||||
{
|
||||
ref.mOriginalCell = cell2.mId;
|
||||
// Keep mOriginalCell empty when in modified (as an indicator that the
|
||||
// original cell will always be equal the current cell).
|
||||
ref.mOriginalCell = base ? cell2.mId : "";
|
||||
|
||||
if (cell.get().isExterior())
|
||||
{
|
||||
|
||||
// ignoring moved references sub-record; instead calculate cell from coordinates
|
||||
std::pair<int, int> index = ref.getCellIndex();
|
||||
|
||||
|
|
Loading…
Reference in a new issue