Fix disconnect key crash

This commit is contained in:
Agent X 2023-12-29 19:08:28 -05:00
parent 229dd6c1e7
commit 7ba65e7799
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ void discord_activity_update(void) {
} else if (gNetworkType == NT_SERVER) {
strcpy(sCurActivity.state, "Waiting for players...");
} else {
strcpy(sCurActivity.state, "In-game.");
strcpy(sCurActivity.state, "In the menus.");
sCurActivity.party.size.current_size = 1;
if (sCurActivity.party.size.max_size < 1) { sCurActivity.party.size.max_size = 1; }
}

View File

@ -24,7 +24,7 @@ void djui_panel_pause_quit_yes(UNUSED struct DjuiBase* caller) {
}
void djui_panel_pause_disconnect_key_update(int scancode) {
if (gDjuiInMainMenu) { return; }
if (gDjuiInMainMenu || find_object_with_behavior(bhvActSelector) != NULL) { return; }
for (int i = 0; i < MAX_BINDS; i++) {
if (scancode == (int)configKeyDisconnect[i]) {