mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 18:45:36 +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:
commit
5fd4d1a097
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue