From 6b0f848ba383e55a633e6d6e8c20628c63063587 Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 9 Oct 2016 19:29:14 +0400 Subject: [PATCH] (XoredStream.Write): fixed. --- ArcFormats/CommonStreams.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcFormats/CommonStreams.cs b/ArcFormats/CommonStreams.cs index b2c23e07..04d6433b 100644 --- a/ArcFormats/CommonStreams.cs +++ b/ArcFormats/CommonStreams.cs @@ -572,7 +572,7 @@ namespace GameRes.Formats { write_buf[i] = (byte)(buffer[offset+i] ^ m_key); } - BaseStream.Write (write_buf, 0, count); + BaseStream.Write (write_buf, 0, chunk); offset += chunk; count -= chunk; }