Fixed crash in djui_panel_join_lobbies_create()

This commit is contained in:
David Joslin 2023-11-08 13:51:12 -08:00 committed by Agent X
parent 7e7f6067a9
commit c6be02e042
1 changed files with 1 additions and 0 deletions

View File

@ -176,6 +176,7 @@ void djui_panel_join_lobbies_create(struct DjuiBase* caller, const char* passwor
} }
struct DjuiPanel* p = djui_panel_add(caller, panel, defaultBase); struct DjuiPanel* p = djui_panel_add(caller, panel, defaultBase);
if (!p) { return; }
p->on_panel_destroy = djui_panel_join_lobbies_on_destroy; p->on_panel_destroy = djui_panel_join_lobbies_on_destroy;
} }