mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix minimap crash if Super Flicky owner spectates
This commit is contained in:
parent
14d6477aad
commit
c3748ff91a
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue