summaryrefslogtreecommitdiff
path: root/src/union_room.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-10-23 10:55:46 -0400
committerGriffinR <griffin.g.richards@gmail.com>2021-10-24 15:49:19 -0400
commit7f3c52993573b3cc1c8d1013c68d9b57c3146bd7 (patch)
tree82cf1587492e4c114825e9570526a367169e7e51 /src/union_room.c
parent0fbf5f59b3e142ccfae0cb193f475ecd704c8746 (diff)
Document record mixing mail swap
Diffstat (limited to 'src/union_room.c')
-rw-r--r--src/union_room.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/union_room.c b/src/union_room.c
index db2d0247b..a889490f1 100644
--- a/src/union_room.c
+++ b/src/union_room.c
@@ -1495,14 +1495,14 @@ static void Task_StartUnionRoomTrade(u8 taskId)
}
break;
case 2:
- memcpy(gBlockSendBuffer, gSaveBlock1Ptr->mail, sizeof(struct MailStruct) * PARTY_SIZE + 4);
- if (SendBlock(0, gBlockSendBuffer, sizeof(struct MailStruct) * PARTY_SIZE + 4))
+ memcpy(gBlockSendBuffer, gSaveBlock1Ptr->mail, sizeof(struct Mail) * PARTY_SIZE + 4);
+ if (SendBlock(0, gBlockSendBuffer, sizeof(struct Mail) * PARTY_SIZE + 4))
gTasks[taskId].data[0]++;
break;
case 3:
if (GetBlockReceivedStatus() == 3)
{
- memcpy(gTradeMail, gBlockRecvBuffer[GetMultiplayerId() ^ 1], sizeof(struct MailStruct) * PARTY_SIZE);
+ memcpy(gTradeMail, gBlockRecvBuffer[GetMultiplayerId() ^ 1], sizeof(struct Mail) * PARTY_SIZE);
ResetBlockReceivedFlags();
gSelectedTradeMonPositions[TRADE_PLAYER] = monId;
gSelectedTradeMonPositions[TRADE_PARTNER] = PARTY_SIZE;