mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 08:35:52 -04:00
Consider moved references in CellStore::listRefs
This commit is contained in:
parent
31a4e10c6f
commit
7afd2ca614
@ -450,10 +450,25 @@ namespace MWWorld
|
|||||||
if (deleted)
|
if (deleted)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// Don't list reference if it was moved to a different cell.
|
||||||
|
ESM::MovedCellRefTracker::const_iterator iter =
|
||||||
|
std::find(mCell->mMovedRefs.begin(), mCell->mMovedRefs.end(), ref.mRefNum);
|
||||||
|
if (iter != mCell->mMovedRefs.end()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
mIds.push_back (Misc::StringUtils::lowerCase (ref.mRefID));
|
mIds.push_back (Misc::StringUtils::lowerCase (ref.mRefID));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// List moved references, from separately tracked list.
|
||||||
|
for (ESM::CellRefTracker::const_iterator it = mCell->mLeasedRefs.begin(); it != mCell->mLeasedRefs.end(); ++it)
|
||||||
|
{
|
||||||
|
ESM::CellRef &ref = const_cast<ESM::CellRef&>(*it);
|
||||||
|
|
||||||
|
mIds.push_back(Misc::StringUtils::lowerCase(ref.mRefID));
|
||||||
|
}
|
||||||
|
|
||||||
std::sort (mIds.begin(), mIds.end());
|
std::sort (mIds.begin(), mIds.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user