From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Wed, 20 Dec 2023 07:08:48 +0000 (-0500) Subject: Fix index out of range exception in atmosphere system (#22770) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=41420346c3076a0be0654f4008b8df2648cb3682;p=space-station-14.git Fix index out of range exception in atmosphere system (#22770) --- 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--; } }