diff --git a/src/k_hud.c b/src/k_hud.c index e434697f6..93e3902fd 100644 --- a/src/k_hud.c +++ b/src/k_hud.c @@ -3588,6 +3588,10 @@ static void K_drawKartMinimapHead(mobj_t *mo, INT32 x, INT32 y, INT32 flags) #endif skin = K_GetMobjSkin(mo); + + if (!skin) + return; + minimaphead = (skinlocal ? localfacemmapprefix : facemmapprefix)[K_GetMobjSkinNum(skin, skinlocal)]; if (minimaphead == NULL) @@ -3791,6 +3795,9 @@ static void K_drawKartMinimap(void) mobj_t *mobj = players[localplayers[i]].mo; + if (!mobj) + continue; + // dont draw for no contestants boolean playertimedout = (mobj->health <= 0 && players[localplayers[i]].pflags & PF_TIMEOVER);