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
This commit is contained in:
GrenderG 2023-09-13 02:48:28 +02:00 committed by GitHub
parent ce1a19afa6
commit 93b53546a0
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 must be filled with STOP_BYTE
unsigned char name[11];
struct SelectedPokemon selected_pokemon;
struct PartyMember pokemon[6];