From 322632e4d8e7a673802c6753f382bef46464558c Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 14 Oct 2016 10:20:13 +0400 Subject: [PATCH] (GWD): use Buffer.BlockCopy to copy bytes. --- ArcFormats/AdvSys/ImageGWD.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ArcFormats/AdvSys/ImageGWD.cs b/ArcFormats/AdvSys/ImageGWD.cs index d9d7fe6f..f781428c 100644 --- a/ArcFormats/AdvSys/ImageGWD.cs +++ b/ArcFormats/AdvSys/ImageGWD.cs @@ -150,10 +150,8 @@ namespace GameRes.Formats.AdvSys for (int y = 0; y < m_height; ++y) { FillLine(); - for (int src = 0; src < m_width; ++src) - { - m_output[dst++] = m_line_buf[src]; - } + Buffer.BlockCopy (m_line_buf, 0, m_output, dst, m_width); + dst += m_width; } }