1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-24 04:43:49 +00:00

Fix loading a savegame when some of its content files were disabled

Fixes #1380
This commit is contained in:
scrawl 2014-06-01 23:11:38 +02:00
parent c018319940
commit f6f6b5604a
2 changed files with 3 additions and 1 deletions

View File

@ -314,6 +314,8 @@ bool MWWorld::Cells::readRecord (ESM::ESMReader& reader, int32_t type,
catch (...)
{
// silently drop cells that don't exist anymore
reader.skipRecord();
return true;
/// \todo log
}

View File

@ -100,7 +100,7 @@ namespace MWWorld
if (iter!=mVariables.end())
iter->second.read (reader, ESM::Variant::Format_Global);
else
reader.skipHRecord();
reader.skipRecord();
return true;
}