mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-18 18:40:06 +00:00
Use ESM::RefId as key for Data::mRefLoadCache
This commit is contained in:
parent
419a86f0b9
commit
693f4c40f4
@ -1209,9 +1209,8 @@ bool CSMWorld::Data::continueLoading(CSMDoc::Messages& messages)
|
|||||||
messages.add(id, "Logic error: cell index out of bounds", "", CSMDoc::Message::Severity_Error);
|
messages.add(id, "Logic error: cell index out of bounds", "", CSMDoc::Message::Severity_Error);
|
||||||
index = mCells.getSize() - 1;
|
index = mCells.getSize() - 1;
|
||||||
}
|
}
|
||||||
const std::string cellId = mCells.getId(index).getRefIdString();
|
|
||||||
|
|
||||||
mRefs.load(*mReader, index, mBase, mRefLoadCache[cellId], messages);
|
mRefs.load(*mReader, index, mBase, mRefLoadCache[mCells.getId(index)], messages);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ namespace CSMWorld
|
|||||||
const ESM::Dialogue* mDialogue; // last loaded dialogue
|
const ESM::Dialogue* mDialogue; // last loaded dialogue
|
||||||
bool mBase;
|
bool mBase;
|
||||||
bool mProject;
|
bool mProject;
|
||||||
std::map<std::string, std::map<unsigned int, unsigned int>, Misc::StringUtils::CiComp> mRefLoadCache;
|
std::map<ESM::RefId, std::map<unsigned int, unsigned int>> mRefLoadCache;
|
||||||
int mReaderIndex;
|
int mReaderIndex;
|
||||||
|
|
||||||
bool mFsStrict;
|
bool mFsStrict;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user