From 46a72bda8e7994a21d41e769fa56ec7f50c87150 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 8 Oct 2026 09:24:30 +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 97f927a06..fcdcbd715 100644 --- a/src/k_hud.c +++ b/src/k_hud.c @@ -3830,9 +3830,10 @@ static void K_drawKartMinimap(void) else { const INT32 skinnum = K_GetMobjLocalSkinNum(mobj->skin, mobj->localskin, mobj->skinlocal); + const skin_t *skin = &K_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); }