From 41420346c3076a0be0654f4008b8df2648cb3682 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Wed, 20 Dec 2023 02:08:48 -0500 Subject: [PATCH] Fix index out of range exception in atmosphere system (#22770) --- .../Atmos/EntitySystems/AtmosphereSystem.GridAtmosphere.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.GridAtmosphere.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.GridAtmosphere.cs index 5891d64d4d..1f1a208b24 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.GridAtmosphere.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.GridAtmosphere.cs @@ -51,7 +51,7 @@ public sealed partial class AtmosphereSystem continue; _currentRunAtmosphere.RemoveAt(i); - if (_currentRunAtmosphereIndex >= i) + if (_currentRunAtmosphereIndex > i) _currentRunAtmosphereIndex--; } } -- 2.51.2