From 6e4da0ce6f87d249fb590f63450ca18d71141480 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+Agent-11@users.noreply.github.com> Date: Sun, 10 Mar 2024 19:09:19 -0400 Subject: [PATCH] Small fixes --- src/pc/djui/djui_panel_player.c | 1 + src/pc/lua/utils/smlua_deprecated.c | 2 +- src/pc/network/network.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pc/djui/djui_panel_player.c b/src/pc/djui/djui_panel_player.c index f75ceab2..5e5f0897 100644 --- a/src/pc/djui/djui_panel_player.c +++ b/src/pc/djui/djui_panel_player.c @@ -166,6 +166,7 @@ static void djui_panel_player_edit_palette_create(struct DjuiBase* caller) { } djui_panel_add(caller, panel, NULL); + gDjuiPanelPlayerCreated = true; } static bool djui_panel_player_name_valid(char* buffer) { diff --git a/src/pc/lua/utils/smlua_deprecated.c b/src/pc/lua/utils/smlua_deprecated.c index 60126066..b9d728b4 100644 --- a/src/pc/lua/utils/smlua_deprecated.c +++ b/src/pc/lua/utils/smlua_deprecated.c @@ -5,7 +5,7 @@ #endif #include "pc/lua/smlua.h" -char* network_discord_id_from_local_index(u8 localIndex) { +char* network_discord_id_from_local_index(UNUSED u8 localIndex) { #ifdef DISCORD_SDK static char sDiscordId[64] = ""; if (localIndex == 0) { diff --git a/src/pc/network/network.c b/src/pc/network/network.c index f4722b12..7b3366ee 100644 --- a/src/pc/network/network.c +++ b/src/pc/network/network.c @@ -701,7 +701,7 @@ void network_shutdown(bool sendLeaving, bool exiting, bool popup, bool reconnect gOverrideAllowToxicGasCamera = FALSE; gNoteFreqScale = 1.0f; - struct Controller* cnt = gMarioStates[0].controller; + struct Controller* cnt = gPlayer1Controller; cnt->rawStickX = 0; cnt->rawStickY = 0; cnt->stickX = 0;