mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Save and load container records; fixes #5668
This commit is contained in:
parent
0eaac4b522
commit
7065282127
@ -451,6 +451,7 @@ void MWState::StateManager::loadGame (const Character *character, const std::str
|
||||
case ESM::REC_LEVC:
|
||||
case ESM::REC_LEVI:
|
||||
case ESM::REC_CREA:
|
||||
case ESM::REC_CONT:
|
||||
MWBase::Environment::get().getWorld()->readRecord(reader, n.intval, contentFileMap);
|
||||
break;
|
||||
|
||||
|
@ -345,7 +345,8 @@ void ESMStore::validate()
|
||||
+mWeapons.getDynamicSize()
|
||||
+mCreatureLists.getDynamicSize()
|
||||
+mItemLists.getDynamicSize()
|
||||
+mCreatures.getDynamicSize();
|
||||
+mCreatures.getDynamicSize()
|
||||
+mContainers.getDynamicSize();
|
||||
}
|
||||
|
||||
void ESMStore::write (ESM::ESMWriter& writer, Loading::Listener& progress) const
|
||||
@ -368,6 +369,7 @@ void ESMStore::validate()
|
||||
mItemLists.write (writer, progress);
|
||||
mCreatureLists.write (writer, progress);
|
||||
mCreatures.write (writer, progress);
|
||||
mContainers.write (writer, progress);
|
||||
}
|
||||
|
||||
bool ESMStore::readRecord (ESM::ESMReader& reader, uint32_t type)
|
||||
@ -386,6 +388,7 @@ void ESMStore::validate()
|
||||
case ESM::REC_LEVI:
|
||||
case ESM::REC_LEVC:
|
||||
case ESM::REC_CREA:
|
||||
case ESM::REC_CONT:
|
||||
mStores[type]->read (reader);
|
||||
return true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user