fix crash when applying localskin midgame

This commit is contained in:
alufolie91 committed 2026-10-08 09:21:40 +02:00
1 parent a464e1ee5d
commit c6f9458e4f
1 file changed
+2 -1
+2 -1
View File
@@ -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);
}