diff --git a/Legacy/Ags32i/AudioAGS.cs b/Legacy/Ags32i/AudioAGS.cs index 331c6b26..5fc1202d 100644 --- a/Legacy/Ags32i/AudioAGS.cs +++ b/Legacy/Ags32i/AudioAGS.cs @@ -44,6 +44,8 @@ namespace GameRes.Formats.Ags32i public override SoundInput TryOpen (IBinaryStream file) { uint key = file.Signature ^ 0x46464952u; + if (0 == key) + return null; Stream input = new InputCryptoStream (file.AsStream, new Ags32Transform (key)); input = new SeekableStream (input); var header = new byte[12];