From 77f56930163af7ec5b0034ab1283578cd1cbb917 Mon Sep 17 00:00:00 2001 From: morkt Date: Sat, 20 Feb 2016 18:19:59 +0400 Subject: [PATCH] (LstOpener): use ArcView.ReadBytes method. --- ArcFormats/ArcLST.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ArcFormats/ArcLST.cs b/ArcFormats/ArcLST.cs index 653934eb..d7218c25 100644 --- a/ArcFormats/ArcLST.cs +++ b/ArcFormats/ArcLST.cs @@ -147,8 +147,7 @@ namespace GameRes.Formats.Nexton var nxent = entry as NextonEntry; if (null == nxent || 0 == nxent.Key) return arc.File.CreateStream (entry.Offset, entry.Size); - var data = new byte[entry.Size]; - arc.File.View.Read (entry.Offset, data, 0, entry.Size); + var data = arc.File.View.ReadBytes (entry.Offset, entry.Size); for (int i = 0; i != data.Length; ++i) data[i] ^= nxent.Key; return new MemoryStream (data);