Fix DARC repack grabbing from the wrong offsets

This commit is contained in:
Kurt
2015-06-16 23:46:59 -07:00
parent af02e6d1fe
commit d3e9ede7c4

View File

@@ -328,7 +328,7 @@ internal static bool insertFile(DARC orig, int index, byte[] data)
try
{
uint oldLength = orig.Entries[index].DataLength;
uint offset = orig.Entries[index].DataOffset;
uint offset = orig.Entries[index].DataOffset - orig.Header.FileDataOffset;
int diff = (int) (data.Length - oldLength);
// Insert into Data Block