Allow INFO records with no subrecords following DATA (Fixes #1486)

This commit is contained in:
scrawl 2014-06-13 21:53:47 +02:00
parent 3334078d4d
commit 4f742fd468

View file

@ -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.