From 2b6f14d01b1f7fa48da6e37d573a64775ec12ca6 Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 2 Nov 2015 09:43:43 +0400 Subject: [PATCH] (GyuReader): use Binary.CopyOverlapped. --- ArcFormats/ExHibit/ImageGYU.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ArcFormats/ExHibit/ImageGYU.cs b/ArcFormats/ExHibit/ImageGYU.cs index b93e1487..6758a0c2 100644 --- a/ArcFormats/ExHibit/ImageGYU.cs +++ b/ArcFormats/ExHibit/ImageGYU.cs @@ -202,11 +202,8 @@ namespace GameRes.Formats.ExHibit offset = -1 << 8 | mem.ReadByte(); } - for (int i = 0; i <= count; ++i) - { - m_output[dst] = m_output[dst+offset]; - ++dst; - } + Binary.CopyOverlapped (m_output, dst+offset, dst, ++count); + dst += count; } } }