From 834fc8631b2cc44e7e00d2e7257a55ec2a30c252 Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 21 Jan 2018 11:52:48 +0400 Subject: [PATCH] (RcbReader): fixed input counter. --- ArcFormats/Groover/ArcPCG.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ArcFormats/Groover/ArcPCG.cs b/ArcFormats/Groover/ArcPCG.cs index 6f4e1d85..a43a6e36 100644 --- a/ArcFormats/Groover/ArcPCG.cs +++ b/ArcFormats/Groover/ArcPCG.cs @@ -198,9 +198,8 @@ namespace GameRes.Formats.Groover { m_input.Position = 0x18; var output = new byte[m_unpacked_size]; - int src = 0; int dst = 0; - while (src < m_packed_size && dst < m_unpacked_size) + for (int src = 0; src < m_packed_size && dst < m_unpacked_size; ++src) { m_input.Read (output, dst, 3); int count = m_input.ReadUInt8();