From a75ec704e667f352f26cc34c5546c0fe180babec Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Mon, 22 Apr 2019 16:51:58 +0200 Subject: [PATCH] Fix being unable to fire guns. --- .../GameObjects/Components/Items/Storage/ItemComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/Components/Items/Storage/ItemComponent.cs b/Content.Server/GameObjects/Components/Items/Storage/ItemComponent.cs index 5fa3ad9df2..d750053df0 100644 --- a/Content.Server/GameObjects/Components/Items/Storage/ItemComponent.cs +++ b/Content.Server/GameObjects/Components/Items/Storage/ItemComponent.cs @@ -97,7 +97,7 @@ namespace Content.Server.GameObjects { return; } - if (!eventArgs.Attacked.TryGetComponent(out var placeableSurfaceComponent)) + if (eventArgs.Attacked == null || !eventArgs.Attacked.TryGetComponent(out var placeableSurfaceComponent)) { return; }