From 93b53546a0ae611f2bed88d3ee11befecafaf48b Mon Sep 17 00:00:00 2001 From: GrenderG Date: Wed, 13 Sep 2023 02:48:28 +0200 Subject: [PATCH] Fix leftover space default values for names. (#2) * Fix leftover space default values for names. Originally leftover space is filled with 0x50, not 0x00. * Update comm.c --- comm.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/comm.c b/comm.c index 89c49b2..227662d 100644 --- a/comm.c +++ b/comm.c @@ -40,18 +40,18 @@ unsigned char nicknames[11] = { pokechar_E, pokechar_W, pokechar_STOP_BYTE, - pokechar_NULL_BYTE, - pokechar_NULL_BYTE, - pokechar_NULL_BYTE, - pokechar_NULL_BYTE, - pokechar_NULL_BYTE, - pokechar_NULL_BYTE, - pokechar_NULL_BYTE, + pokechar_STOP_BYTE, + pokechar_STOP_BYTE, + pokechar_STOP_BYTE, + pokechar_STOP_BYTE, + pokechar_STOP_BYTE, + pokechar_STOP_BYTE, + pokechar_STOP_BYTE, }; typedef struct TraderPacket { // Name must not exceed 10 characters + 1 STOP_BYTE - // Any leftover space after STOP_BYTE must be filled with NULL_BYTE + // Any leftover space must be filled with STOP_BYTE unsigned char name[11]; struct SelectedPokemon selected_pokemon; struct PartyMember pokemon[6];