forked from teamnwah/openmw-tes3coop
Recognize DELE subrecords at the end of the record (Fixes #1414)
This commit is contained in:
parent
823ccb1b3d
commit
b9dadff5a3
1 changed files with 7 additions and 0 deletions
|
@ -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…
Reference in a new issue