From 07f7be03a1c406b09ecb5b3a543d787dbf6ab307 Mon Sep 17 00:00:00 2001 From: toaster Date: Mon, 13 Mar 2023 15:11:14 +0000 Subject: [PATCH] M_CupSelectHandler: Fix data types --- src/menus/transient/cup-select.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/menus/transient/cup-select.c b/src/menus/transient/cup-select.c index 23a85e4e0..b4ef37493 100644 --- a/src/menus/transient/cup-select.c +++ b/src/menus/transient/cup-select.c @@ -84,7 +84,7 @@ void M_CupSelectHandler(INT32 choice) if (M_MenuConfirmPressed(pid) /*|| M_MenuButtonPressed(pid, MBT_START)*/) { - INT16 count; + UINT16 count; cupheader_t *newcup = cupgrid.builtgrid[CUPMENU_CURSORID]; cupheader_t *oldcup = levellist.levelsearch.cup; @@ -94,7 +94,7 @@ void M_CupSelectHandler(INT32 choice) count = M_CountLevelsToShowInList(&levellist.levelsearch); if ((!newcup) - || (count <= 0) + || (count == 0) || (cupgrid.grandprix == true && newcup->cachedlevels[0] == NEXTMAP_INVALID)) { S_StartSound(NULL, sfx_s3kb2);