1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 21:45:35 +00:00

Merge branch 'FIX_Dangling_reference' into 'master'

Fix dangling reference in openCS

See merge request OpenMW/openmw!2573
This commit is contained in:
jvoisin 2023-01-02 21:35:29 +00:00
commit 5fd4d1a097

View file

@ -1172,7 +1172,7 @@ bool CSMWorld::Data::continueLoading(CSMDoc::Messages& messages)
messages.add(id, "Logic error: cell index out of bounds", "", CSMDoc::Message::Severity_Error);
index = mCells.getSize() - 1;
}
const std::string& cellId = mCells.getId(index).getRefIdString();
const std::string cellId = mCells.getId(index).getRefIdString();
mRefs.load(*mReader, index, mBase, mRefLoadCache[cellId], messages);
break;