diff --git a/ArcFormats/LiveMaker/ArcVF.cs b/ArcFormats/LiveMaker/ArcVF.cs index eda08264..d6ddf7fa 100644 --- a/ArcFormats/LiveMaker/ArcVF.cs +++ b/ArcFormats/LiveMaker/ArcVF.cs @@ -153,13 +153,13 @@ namespace GameRes.Formats.LiveMaker dir.Add (FormatCatalog.Instance.Create (name)); } rnd.Reset(); - uint offset = file.View.ReadUInt32 (index_offset) ^ rnd.GetRand32(); + long offset = file.View.ReadInt64 (index_offset) ^ (int)rnd.GetRand32(); foreach (var entry in dir) { index_offset += 8; - uint next_offset = file.View.ReadUInt32 (index_offset) ^ rnd.GetRand32(); + long next_offset = file.View.ReadInt64 (index_offset) ^ (int)rnd.GetRand32(); entry.Offset = offset; - entry.Size = next_offset - offset; + entry.Size = (uint)(next_offset - offset); offset = next_offset; } index_offset += 8;