(FpkOpener.OpenEntry): refined null check.

This commit is contained in:
morkt 2016-11-15 10:17:49 +04:00
parent 12cfdd289e
commit 0c3ea083c5

View File

@ -120,7 +120,7 @@ namespace GameRes.Formats.MoonhirGames
byte[] header;
if (null == farc || null == fent || !fent.IsEncrypted)
{
if (fent.IsEncrypted)
if (fent != null && fent.IsEncrypted)
throw new UnknownEncryptionScheme();
input = arc.File.CreateStream (entry.Offset, entry.Size);
header = new byte[0x10];