mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 09:39:43 +00:00
fixed OpenCS crash during cell loading when loading multiple ESX files
This commit is contained in:
parent
e5e9c83ed5
commit
47f7bbd48a
2 changed files with 1 additions and 3 deletions
|
@ -16,8 +16,6 @@ void CSMWorld::RefCollection::load (ESM::ESMReader& reader, int cellIndex, bool
|
||||||
|
|
||||||
Cell& cell2 = base ? cell.mBase : cell.mModified;
|
Cell& cell2 = base ? cell.mBase : cell.mModified;
|
||||||
|
|
||||||
cell2.restore (reader, 0); /// \todo fix the index
|
|
||||||
|
|
||||||
CellRef ref;
|
CellRef ref;
|
||||||
|
|
||||||
while (cell2.getNextRef (reader, ref))
|
while (cell2.getNextRef (reader, ref))
|
||||||
|
|
|
@ -122,7 +122,7 @@ void Cell::save(ESMWriter &esm)
|
||||||
|
|
||||||
void Cell::restore(ESMReader &esm, int iCtx) const
|
void Cell::restore(ESMReader &esm, int iCtx) const
|
||||||
{
|
{
|
||||||
esm.restoreContext(mContextList[iCtx]);
|
esm.restoreContext(mContextList.at (iCtx));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string Cell::getDescription() const
|
std::string Cell::getDescription() const
|
||||||
|
|
Loading…
Reference in a new issue