fix crash when applying localskin midgame

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