Fix minimap crash if Super Flicky owner spectates

This commit is contained in:
James R 2024-01-15 18:11:06 -08:00
parent 14d6477aad
commit c3748ff91a

View file

@ -4460,9 +4460,9 @@ static void K_drawKartMinimap(void)
break;
case MT_SUPER_FLICKY:
workingPic = kp_superflickyminimap;
if (Obj_SuperFlickyOwner(mobj)->color)
if (mobj_t* owner = Obj_SuperFlickyOwner(mobj); owner && owner->color)
{
colormap = R_GetTranslationColormap(TC_RAINBOW, static_cast<skincolornum_t>(Obj_SuperFlickyOwner(mobj)->color), GTC_CACHE);
colormap = R_GetTranslationColormap(TC_RAINBOW, static_cast<skincolornum_t>(owner->color), GTC_CACHE);
}
break;
default: