mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 10:36:42 -05:00
@@ -44,15 +44,15 @@ private Memory<byte> GetBase(int index)
|
||||
|
||||
private void WriteTo(Span<byte> data)
|
||||
{
|
||||
// Initialize: Wipe trainer name of each slot
|
||||
for (int i = 0; i < BaseCount; i++)
|
||||
data.Slice((i * SecretBase3.SIZE) + 2, 7).Fill(StringConverter3.TerminatorByte);
|
||||
|
||||
var tmp = Bases.ToList();
|
||||
for (int i = 0; i < BaseCount; i++)
|
||||
{
|
||||
if (!Occupied[i])
|
||||
{
|
||||
// Initialize: Wipe trainer name of each slot
|
||||
data.Slice((i * SecretBase3.SIZE) + 2, 7).Fill(StringConverter3.TerminatorByte);
|
||||
continue;
|
||||
}
|
||||
var tmpbase = tmp[0];
|
||||
tmpbase.Data.CopyTo(data[(i * SecretBase3.SIZE)..]);
|
||||
tmp.RemoveAt(0);
|
||||
|
||||
Reference in New Issue
Block a user