forked from mirror/openmw-tes3mp
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);
|
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) {
|
if (n.val==ESM::REC_DIAL) {
|
||||||
dialogue = const_cast<ESM::Dialogue*>(mDialogs.find(id));
|
dialogue = const_cast<ESM::Dialogue*>(mDialogs.find(id));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue