fixed cast.

This commit is contained in:
morkt 2017-07-19 07:01:13 +04:00
parent 40575baacb
commit e1bfe9cb09

View File

@ -82,7 +82,7 @@ namespace GameRes.Formats.Pajamas
public override ImageData Read (IBinaryStream file, ImageMetaData info) public override ImageData Read (IBinaryStream file, ImageMetaData info)
{ {
var meta = (EpaMetaData)info as EpaMetaData; var meta = (EpaMetaData)info;
file.Position = 2 == meta.Mode ? 0x18 : 0x10; file.Position = 2 == meta.Mode ? 0x18 : 0x10;
var reader = new Reader (file.AsStream, meta); var reader = new Reader (file.AsStream, meta);
reader.Unpack(); reader.Unpack();