Skip to content

Commit

Permalink
fix null ref
Browse files Browse the repository at this point in the history
  • Loading branch information
stilnat committed Aug 20, 2023
1 parent f08789c commit e8b530f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/SS3D/Systems/Health/Bodypart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ protected virtual void RemoveSingleBodyPart()
{
HideSeveredBodyPart();
DetachBodyPart();
_parentBodyPart._childBodyParts.Remove(this);
_parentBodyPart?._childBodyParts.Remove(this);
_parentBodyPart = null;
}

Expand Down

0 comments on commit e8b530f

Please sign in to comment.