mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-01 04:20:20 +00:00
Strip the plugin index when looking for deleted refs.
This commit is contained in:
parent
8050882baf
commit
fb4250a2b7
@ -64,9 +64,10 @@ 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();
|
||||||
|
unsigned int thisIndex = ref.mRefNum.mIndex & 0x00ffffff;
|
||||||
for (; iter != cache.end(); ++iter)
|
for (; iter != cache.end(); ++iter)
|
||||||
{
|
{
|
||||||
if (ref.mRefNum.mIndex == iter->first.mIndex)
|
if (thisIndex == iter->first.mIndex)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user