From 354fefaefbba77a3408fa9edb5cc4393b9c702ab Mon Sep 17 00:00:00 2001 From: mid-kid Date: Sat, 1 Apr 2023 03:29:33 +0200 Subject: [PATCH] Use time capsule label for time capsule copies --- engine/link/link.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/link/link.asm b/engine/link/link.asm index 608bd0a96..6b03696ed 100644 --- a/engine/link/link.asm +++ b/engine/link/link.asm @@ -122,11 +122,11 @@ endc jp nc, ExitLinkCommunications ld de, wLinkData - ld bc, NAME_LENGTH + 1 + PARTY_LENGTH + 1 + (REDMON_STRUCT_LENGTH + NAME_LENGTH * 2) * PARTY_LENGTH + 3 + ld bc, NAME_LENGTH + (1 + PARTY_LENGTH + 1) + (REDMON_STRUCT_LENGTH + NAME_LENGTH * 2) * PARTY_LENGTH + 3 call Link_CopyOTData ld de, wOTPatchLists - ld hl, wLinkPlayerData + ld hl, wTimeCapsulePlayerData ld c, 2 .loop ld a, [de] @@ -152,7 +152,7 @@ endc jr .loop .next - ld hl, wLinkPlayerData + SERIAL_PATCH_DATA_SIZE + ld hl, wTimeCapsulePlayerData + SERIAL_PATCH_DATA_SIZE dec c jr nz, .loop