mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-01 13:20:29 +00:00
Merge pull request #3020 from unelsson/strippluginindex_cs
Strip the plugin index when looking for deleted refs.
This commit is contained in:
commit
259f7fcf12
@ -64,6 +64,7 @@ void CSMWorld::RefCollection::load (ESM::ESMReader& reader, int cellIndex, bool
|
|||||||
|
|
||||||
// ignore content file number
|
// ignore content file number
|
||||||
std::map<ESM::RefNum, std::string>::iterator iter = cache.begin();
|
std::map<ESM::RefNum, std::string>::iterator iter = cache.begin();
|
||||||
|
ref.mRefNum.mIndex = ref.mRefNum.mIndex & 0x00ffffff;
|
||||||
for (; iter != cache.end(); ++iter)
|
for (; iter != cache.end(); ++iter)
|
||||||
{
|
{
|
||||||
if (ref.mRefNum.mIndex == iter->first.mIndex)
|
if (ref.mRefNum.mIndex == iter->first.mIndex)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user