mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
parent
ccca8abdad
commit
fd07456ee1
3 changed files with 10 additions and 2 deletions
|
@ -202,5 +202,13 @@ namespace PKHeX.Core
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void CopyFrom(SCBlock other)
|
||||||
|
{
|
||||||
|
if (Type.IsBoolean())
|
||||||
|
ChangeBooleanType(other.Type);
|
||||||
|
else
|
||||||
|
ChangeData(other.Data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ public sealed class SAV8LA : SaveFile, ISaveBlock8LA, ISCBlockArray
|
||||||
var mine = AllBlocks;
|
var mine = AllBlocks;
|
||||||
var newB = z.AllBlocks;
|
var newB = z.AllBlocks;
|
||||||
for (int i = 0; i < mine.Count; i++)
|
for (int i = 0; i < mine.Count; i++)
|
||||||
newB[i].Data.CopyTo(mine[i].Data, 0);
|
mine[i].CopyFrom(newB[i]);
|
||||||
State.Edited = true;
|
State.Edited = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ namespace PKHeX.Core
|
||||||
var mine = AllBlocks;
|
var mine = AllBlocks;
|
||||||
var newB = z.AllBlocks;
|
var newB = z.AllBlocks;
|
||||||
for (int i = 0; i < mine.Count; i++)
|
for (int i = 0; i < mine.Count; i++)
|
||||||
newB[i].Data.CopyTo(mine[i].Data, 0);
|
mine[i].CopyFrom(newB[i]);
|
||||||
State.Edited = true;
|
State.Edited = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue