From 4f742fd4686dc05055258c64fa496f705e6a83ca Mon Sep 17 00:00:00 2001 From: scrawl Date: Fri, 13 Jun 2014 21:53:47 +0200 Subject: [PATCH] Allow INFO records with no subrecords following DATA (Fixes #1486) --- components/esm/loadinfo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/esm/loadinfo.cpp b/components/esm/loadinfo.cpp index f86ad3b51..c9860dcef 100644 --- a/components/esm/loadinfo.cpp +++ b/components/esm/loadinfo.cpp @@ -18,6 +18,9 @@ void DialInfo::load(ESMReader &esm) esm.getHT(mData, 12); } + if (!esm.hasMoreSubs()) + return; + // What follows is somewhat spaghetti-ish, but it's worth if for // an extra speedup. INFO is by far the most common record type.