fixed OpenCS crash during cell loading when loading multiple ESX files

actorid
Marc Zinnschlag 12 years ago
parent e5e9c83ed5
commit 47f7bbd48a

@ -16,8 +16,6 @@ void CSMWorld::RefCollection::load (ESM::ESMReader& reader, int cellIndex, bool
Cell& cell2 = base ? cell.mBase : cell.mModified;
cell2.restore (reader, 0); /// \todo fix the index
CellRef ref;
while (cell2.getNextRef (reader, ref))

@ -122,7 +122,7 @@ void Cell::save(ESMWriter &esm)
void Cell::restore(ESMReader &esm, int iCtx) const
{
esm.restoreContext(mContextList[iCtx]);
esm.restoreContext(mContextList.at (iCtx));
}
std::string Cell::getDescription() const

Loading…
Cancel
Save