Merge branch 'queue-cup-crash-fix-please' into 'master'

Fix crash when trying to queue cup while highlighting an empty square.

Closes #377

See merge request kart-krew-dev/ring-racers!71
This commit is contained in:
Eidolon 2025-10-25 19:07:30 -05:00
commit f984ecc5d7

View file

@ -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]))