Fix crash when removing hand component (#5822)

This commit is contained in:
wrexbe
2021-12-19 21:55:23 -08:00
committed by GitHub
parent c5c167155d
commit 17627b20e2

View File

@@ -474,7 +474,7 @@ namespace Content.Shared.Hands.Components
/// </summary>
public void DropHeldEntity(Hand hand, EntityCoordinates targetDropLocation)
{
if (hand.HeldEntity == null)
if (hand.IsEmpty)
return;
var heldEntity = hand.HeldEntity;