ImportMapAcresAll: update CopyTo index to 0 (#245)

The second parameter of `Array.CopyTo` takes an integer that represents the index in array at which copying begins. Therefore in this case it should be set to 0 instead of the array's length.
This commit is contained in:
Thibault Ehrhart 2020-05-23 18:02:06 +02:00 committed by GitHub
parent 180e337f05
commit 71428d542e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,8 +245,8 @@ public static bool ImportMapAcresAll(byte[] data)
return false;
}
modified.CopyTo(data, modified.Length);
modified.CopyTo(data, 0);
return true;
}
}
}
}