1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:53:50 +00:00

Strip the plugin index from refid completely

This commit is contained in:
Nelsson Huotari 2020-10-23 20:21:34 +03:00
parent fb4250a2b7
commit b1ea9f6a5b

View file

@ -64,10 +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; ref.mRefNum.mIndex = ref.mRefNum.mIndex & 0x00ffffff;
for (; iter != cache.end(); ++iter) for (; iter != cache.end(); ++iter)
{ {
if (thisIndex == iter->first.mIndex) if (ref.mRefNum.mIndex == iter->first.mIndex)
break; break;
} }