forked from teamnwah/openmw-tes3coop
Allow INFO records with no subrecords following DATA (Fixes #1486)
This commit is contained in:
parent
3334078d4d
commit
4f742fd468
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,9 @@ void DialInfo::load(ESMReader &esm)
|
||||||
esm.getHT(mData, 12);
|
esm.getHT(mData, 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!esm.hasMoreSubs())
|
||||||
|
return;
|
||||||
|
|
||||||
// What follows is somewhat spaghetti-ish, but it's worth if for
|
// What follows is somewhat spaghetti-ish, but it's worth if for
|
||||||
// an extra speedup. INFO is by far the most common record type.
|
// an extra speedup. INFO is by far the most common record type.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue