From 3391bcfa46592ef5bdb31e80dae54f3f3190c46f Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 14 Oct 2016 10:20:42 +0400 Subject: [PATCH] (LWG): ignore empty entries. --- ArcFormats/Liar/ArcLWG.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ArcFormats/Liar/ArcLWG.cs b/ArcFormats/Liar/ArcLWG.cs index 86978214..1f2d9eb3 100644 --- a/ArcFormats/Liar/ArcLWG.cs +++ b/ArcFormats/Liar/ArcLWG.cs @@ -72,9 +72,11 @@ namespace GameRes.Formats.Liar cur_offset += 18+name_length; if (cur_offset > dir_size+24) return null; - if (entry.CheckPlacement (data_offset + data_size)) + if (entry.Size > 0 && entry.CheckPlacement (data_offset + data_size)) dir.Add (entry); } + if (0 == dir.Count) + return null; return new ArcFile (file, this, dir); } }