(AutoEntry.Create): ignore zero signatures.

This commit is contained in:
morkt 2015-10-28 23:13:13 +04:00
parent 6369489fc6
commit 46631796b8

View File

@ -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 };
}