mirror of
https://github.com/kwsch/NHSE.git
synced 2026-07-02 00:11:55 -05:00
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:
parent
180e337f05
commit
71428d542e
|
|
@ -245,8 +245,8 @@ public static bool ImportMapAcresAll(byte[] data)
|
|||
return false;
|
||||
}
|
||||
|
||||
modified.CopyTo(data, modified.Length);
|
||||
modified.CopyTo(data, 0);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user