]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix index out of range exception in atmosphere system (#22770)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Wed, 20 Dec 2023 07:08:48 +0000 (02:08 -0500)
committerGitHub <noreply@github.com>
Wed, 20 Dec 2023 07:08:48 +0000 (18:08 +1100)
Content.Server/Atmos/EntitySystems/AtmosphereSystem.GridAtmosphere.cs

index 5891d64d4d7d538ececef571ad6f995ca920d3e7..1f1a208b24b07063fee7041924d991564fbc6b95 100644 (file)
@@ -51,7 +51,7 @@ public sealed partial class AtmosphereSystem
                 continue;
 
             _currentRunAtmosphere.RemoveAt(i);
-            if (_currentRunAtmosphereIndex >= i)
+            if (_currentRunAtmosphereIndex > i)
                 _currentRunAtmosphereIndex--;
         }
     }