From b4ebbbad89c038fdb99389cc7e8c7fca22194d75 Mon Sep 17 00:00:00 2001 From: "X.organic" <dilithium.no3@protonmail.com> Date: Sun, 21 Aug 2022 11:50:02 +0200 Subject: [PATCH] Remove the last SINT8 handling skin indices Thanks to Callmore's insistence on me sweeping through functions that return -1 on error. --- src/m_menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m_menu.c b/src/m_menu.c index 3243e0fc6..f98f917e5 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -2381,7 +2381,7 @@ static void M_ChangeCvar(INT32 choice) { if (cv == &cv_playercolor) { - SINT8 skinno = R_SkinAvailable(cv_chooseskin.string); + INT32 skinno = R_SkinAvailable(cv_chooseskin.string); if (skinno != -1) CV_SetValue(cv,skins[skinno].prefcolor); return; -- GitLab