mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +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
2 changed files with 3 additions and 1 deletions
|
@ -314,6 +314,8 @@ bool MWWorld::Cells::readRecord (ESM::ESMReader& reader, int32_t type,
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
// silently drop cells that don't exist anymore
|
// silently drop cells that don't exist anymore
|
||||||
|
reader.skipRecord();
|
||||||
|
return true;
|
||||||
/// \todo log
|
/// \todo log
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ namespace MWWorld
|
||||||
if (iter!=mVariables.end())
|
if (iter!=mVariables.end())
|
||||||
iter->second.read (reader, ESM::Variant::Format_Global);
|
iter->second.read (reader, ESM::Variant::Format_Global);
|
||||||
else
|
else
|
||||||
reader.skipHRecord();
|
reader.skipRecord();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue