From e81547f637f4d90409df1efabb8e14dc382aa144 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 8 Oct 2026 09:21:40 +0200 Subject: [PATCH] fix crash when applying localskin midgame --- src/k_hud.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/k_hud.c b/src/k_hud.c index ee0e8abc6..60eb6f613 100644 --- a/src/k_hud.c +++ b/src/k_hud.c @@ -3828,9 +3828,10 @@ static void K_drawKartMinimap(void) else { const INT32 skinnum = R_GetMobjLocalSkinNum(mobj); + const skin_t *skin = R_GetSkinArray(mobj->skinlocal)[skinnum]; // special case if startcolor is not the default (160 / Green) - if (skinnum && skins[skinnum]->starttranscolor != skins[0]->starttranscolor) + if (skinnum && skin->starttranscolor != skins[0]->starttranscolor) { colormap = R_GetTranslationColormap(TC_DEFAULT, mobj->color, GTC_CACHE); }