fix crash when applying localskin midgame

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