mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Fix dangling reference.
This commit is contained in:
parent
563324bcff
commit
1b66be9c70
@ -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);
|
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();
|
const std::string cellId = mCells.getId(index).getRefIdString();
|
||||||
|
|
||||||
mRefs.load(*mReader, index, mBase, mRefLoadCache[cellId], messages);
|
mRefs.load(*mReader, index, mBase, mRefLoadCache[cellId], messages);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user