HUD tracking: fix Super Flicky crash if owner died

This commit is contained in:
James R 2024-01-12 17:54:30 -08:00
parent 92acc80975
commit b6a725ad7b

View file

@ -82,7 +82,7 @@ struct TargetTracking
return player_emeralds_color(); return player_emeralds_color();
case MT_SUPER_FLICKY: case MT_SUPER_FLICKY:
return static_cast<skincolornum_t>(Obj_SuperFlickyOwner(mobj)->color); return Obj_SuperFlickyOwner(mobj) ? static_cast<skincolornum_t>(Obj_SuperFlickyOwner(mobj)->color) : SKINCOLOR_NONE;
default: default:
return SKINCOLOR_NONE; return SKINCOLOR_NONE;