From 46631796b82a6ebc93ceb2f1d712cb709a2d04e0 Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 28 Oct 2015 23:13:13 +0400 Subject: [PATCH] (AutoEntry.Create): ignore zero signatures. --- ArcFormats/ArcCommon.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ArcFormats/ArcCommon.cs b/ArcFormats/ArcCommon.cs index 6c6fba08..edb3b808 100644 --- a/ArcFormats/ArcCommon.cs +++ b/ArcFormats/ArcCommon.cs @@ -60,6 +60,7 @@ namespace GameRes.Formats { return new AutoEntry (base_name, () => { uint signature = file.View.ReadUInt32 (offset); + if (0 == signature) return null; return FormatCatalog.Instance.LookupSignature (signature).FirstOrDefault(); }) { Offset = offset }; }