renamed local var.

This commit is contained in:
morkt 2015-05-15 17:51:23 +04:00
parent efbb3aef2c
commit 8640e34c27

View File

@ -77,7 +77,7 @@ namespace GameRes.Formats.Ail
} }
if (offset != file.MaxOffset || 0 == dir.Count) if (offset != file.MaxOffset || 0 == dir.Count)
return null; return null;
byte[] data_buf = new byte[16]; byte[] preview = new byte[16];
byte[] sign_buf = new byte[4]; byte[] sign_buf = new byte[4];
foreach (var entry in dir.Cast<PackedEntry>()) foreach (var entry in dir.Cast<PackedEntry>())
{ {
@ -94,8 +94,8 @@ namespace GameRes.Formats.Ail
entry.Size -= extra; entry.Size -= extra;
if (entry.IsPacked) if (entry.IsPacked)
{ {
file.View.Read (entry.Offset, data_buf, 0, (uint)data_buf.Length); file.View.Read (entry.Offset, preview, 0, (uint)preview.Length);
using (var input = new MemoryStream (data_buf)) using (var input = new MemoryStream (preview))
{ {
LzssUnpack (input, sign_buf); LzssUnpack (input, sign_buf);
uint signature = LittleEndian.ToUInt32 (sign_buf, 0); uint signature = LittleEndian.ToUInt32 (sign_buf, 0);