mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-14 01:19:59 +00:00
Recognize DELE subrecords at the end of the record (Fixes #1414)
This commit is contained in:
parent
823ccb1b3d
commit
b9dadff5a3
@ -99,6 +99,13 @@ void ESMStore::load(ESM::ESMReader &esm, Loading::Listener* listener)
|
||||
}
|
||||
it->second->load(esm, id);
|
||||
|
||||
// DELE can also occur after the usual subrecords
|
||||
if (esm.isNextSub("DELE")) {
|
||||
esm.skipRecord();
|
||||
it->second->eraseStatic(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (n.val==ESM::REC_DIAL) {
|
||||
dialogue = const_cast<ESM::Dialogue*>(mDialogs.find(id));
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user