mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 08:40:55 -05:00
@@ -159,7 +159,7 @@ private static byte[] PSKtoCGB(ReadOnlySpan<byte> psk)
|
||||
ConvertTilesPSKtoCGB(tileRegion);
|
||||
return cgb;
|
||||
}
|
||||
|
||||
|
||||
private static void ConvertTilesPSKtoCGB(Span<byte> tileRegion)
|
||||
{
|
||||
for (int i = 0; i < tileRegion.Length; i += 2)
|
||||
@@ -172,8 +172,8 @@ private static void ConvertTilesPSKtoCGB(Span<byte> tileRegion)
|
||||
byte rot = (byte)(index >> 8);
|
||||
if (tile == 0xFF)
|
||||
tile = 0;
|
||||
exist[i] = tile;
|
||||
exist[i + 1] = rot;
|
||||
exist[0] = tile;
|
||||
exist[1] = rot;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user