diff --git a/src/pc/djui/djui.c b/src/pc/djui/djui.c index 3206a774..3bf3c20d 100644 --- a/src/pc/djui/djui.c +++ b/src/pc/djui/djui.c @@ -37,7 +37,7 @@ void reset_djui(void) { sDjuiLuaErrorTimeout = 0; if (gDjuiRoot) djui_base_destroy(&gDjuiRoot->base); - if (gDjuiConsole) djui_base_destroy(&gDjuiConsole->panel->base); + if (gDjuiConsole) djui_base_destroy(&gDjuiConsole->base); extern u32 sDjuiConsoleMessages; sDjuiConsoleMessages = 0; diff --git a/src/pc/djui/djui_chat_box.c b/src/pc/djui/djui_chat_box.c index 04c1511b..8d96fb9b 100644 --- a/src/pc/djui/djui_chat_box.c +++ b/src/pc/djui/djui_chat_box.c @@ -476,16 +476,6 @@ static void djui_chat_box_input_on_text_input(struct DjuiBase *base, char* text) } } -static void djui_chat_box_input_on_text_input(struct DjuiBase *base, char* text) { - char previousText[MAX_MSG_LENGTH]; - strncpy(previousText, gDjuiChatBox->chatInput->buffer, MAX_MSG_LENGTH - 1); - djui_inputbox_on_text_input(base, text); - if (strcmp(previousText, gDjuiChatBox->chatInput->buffer) != 0) { - reset_tab_completion_all(); - } -} - - void djui_chat_box_toggle(void) { if (gDjuiChatBox == NULL) { return; } if (!gDjuiChatBoxFocus) { sDjuiChatBoxClearText = true; }