Fix join issue when compiling without DEBUG

This commit is contained in:
MysterD 2020-09-06 12:46:02 -07:00
parent 7dafd081e1
commit 975c68ae1e
2 changed files with 4 additions and 4 deletions

View file

@ -405,7 +405,7 @@ void keyboard_exit_join_to_network_menu(void) {
void join_server_as_client(void) {
if (gNetworkType != NT_NONE) { return; }
char delims[] = { ' ' };
char delims[2] = " ";
// copy input
char buffer[MAX_TEXT_INPUT] = { 0 };

View file

@ -9,9 +9,9 @@
extern u8 gInsidePainting;
extern s16 sCurrPlayMode;
enum NetworkType gNetworkType;
static SOCKET gSocket;
struct sockaddr_in txAddr;
enum NetworkType gNetworkType = NT_NONE;
static SOCKET gSocket = NULL;
struct sockaddr_in txAddr = { 0 };
#define LOADING_LEVEL_THRESHOLD 10
u8 networkLoadingLevel = 0;