From ea8acf33aa43b59ff5e8034f2a9aeeadfc701f63 Mon Sep 17 00:00:00 2001 From: FreakyMutantMan Date: Wed, 22 Oct 2025 11:20:32 -0700 Subject: [PATCH] Fix crash when trying to queue cup while highlighting an empty square. --- src/menus/transient/cup-select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menus/transient/cup-select.c b/src/menus/transient/cup-select.c index a3b6b43f4..1996fb03b 100644 --- a/src/menus/transient/cup-select.c +++ b/src/menus/transient/cup-select.c @@ -525,7 +525,7 @@ void M_CupSelectHandler(INT32 choice) { M_SetMenuDelay(pid); - if (cupgrid.builtgrid[CUPMENU_CURSORID] == &dummy_lostandfound) + if ((cupgrid.builtgrid[CUPMENU_CURSORID] == &dummy_lostandfound) || (cupgrid.builtgrid[CUPMENU_CURSORID] == NULL)) S_StartSound(NULL, sfx_gshe7); else if (!M_IsCupQueueable(cupgrid.builtgrid[CUPMENU_CURSORID]))