From 59d508c5dffa8999474b6b1db94f2f5c878b8509 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Sat, 30 Jan 2021 15:55:10 +0100 Subject: [PATCH] Fixes exception when solution reaction completely removes reagent. Fixed #3053 --- Content.Shared/Chemistry/Solution.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/Chemistry/Solution.cs b/Content.Shared/Chemistry/Solution.cs index 96b802696b..7fb2315c1e 100644 --- a/Content.Shared/Chemistry/Solution.cs +++ b/Content.Shared/Chemistry/Solution.cs @@ -321,7 +321,7 @@ namespace Content.Shared.Chemistry { var proto = IoCManager.Resolve(); - foreach (var (reagentId, quantity) in _contents) + foreach (var (reagentId, quantity) in _contents.ToArray()) { if (!proto.TryIndex(reagentId, out ReagentPrototype reagent)) continue;