From 853376d169e25965402e1ebb45766f44dab3f7bf Mon Sep 17 00:00:00 2001 From: morkt Date: Sat, 20 Feb 2016 18:24:31 +0400 Subject: [PATCH] (UnpackIndexed): minor fixes. --- ArcFormats/Lucifen/ImageELG.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArcFormats/Lucifen/ImageELG.cs b/ArcFormats/Lucifen/ImageELG.cs index ed0cc23e..d2bcdbff 100644 --- a/ArcFormats/Lucifen/ImageELG.cs +++ b/ArcFormats/Lucifen/ImageELG.cs @@ -183,7 +183,7 @@ namespace GameRes.Formats.Lucifen for (;;) { byte flags = m_input.ReadByte(); - if (0xff == flags || dst >= m_output.Length) + if (0xff == flags || dst >= output.Length) break; int count, pos; @@ -194,8 +194,8 @@ namespace GameRes.Formats.Lucifen else count = (flags & 0x1f) + 1; - for (int i = 0; i < count; ++i) - output[dst++] = m_input.ReadByte(); + m_input.Read (output, dst, count); + dst += count; } else if ((flags & 0xc0) == 0x40) {