removed header length check.

This commit is contained in:
morkt 2015-05-27 14:42:11 +04:00
parent ed9ae05853
commit 68493ede0f

View File

@ -97,7 +97,7 @@ namespace GameRes.Formats.Entis
using (var reader = new ArcView.Reader (stream)) using (var reader = new ArcView.Reader (stream))
{ {
var section = ReadEriSection (reader); var section = ReadEriSection (reader);
if (section.Id != "Header " || section.Length <= 0 || section.Length > 0x200) if (section.Id != "Header " || section.Length <= 0)
return null; return null;
int header_size = (int)section.Length; int header_size = (int)section.Length;
int stream_pos = 0x50 + header_size; int stream_pos = 0x50 + header_size;