From ee209cd720d34d3abcb422db0ca763d3eaa17a29 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Thu, 25 Jun 2020 01:30:39 +1000 Subject: [PATCH] Fix grenades throwing (#1205) Exceptions Co-authored-by: Metal Gear Sloth --- Content.Server/GameObjects/Components/GUI/InventoryComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/Components/GUI/InventoryComponent.cs b/Content.Server/GameObjects/Components/GUI/InventoryComponent.cs index 0c698f434d..40db217526 100644 --- a/Content.Server/GameObjects/Components/GUI/InventoryComponent.cs +++ b/Content.Server/GameObjects/Components/GUI/InventoryComponent.cs @@ -408,7 +408,7 @@ namespace Content.Server.GameObjects { foreach (var entity in slot.ContainedEntities) { - var exActs = entity.GetAllComponents(); + var exActs = entity.GetAllComponents().ToList(); foreach (var exAct in exActs) { exAct.OnExplosion(eventArgs);