Fix leftover space default values for names.

Originally leftover space is filled with 0x50, not 0x00.
This commit is contained in:
GrenderG 2023-09-12 17:41:32 +02:00 committed by GitHub
parent ce1a19afa6
commit 02ce886855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
comm.c
View File

@ -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 after must be filled with STOP_BYTE
unsigned char name[11];
struct SelectedPokemon selected_pokemon;
struct PartyMember pokemon[6];