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:
parent
c018319940
commit
f6f6b5604a
@ -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
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user