From c6f9458e4fe92ce035e7993049ec2fea5748d0c8 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 a13df50eb..166cba4ed 100644 --- a/src/k_hud.c +++ b/src/k_hud.c @@ -3835,9 +3835,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); }