Fix index out of range exception in atmosphere system (#22770)

This commit is contained in:
Leon Friedrich
2023-12-20 02:08:48 -05:00
committed by GitHub
parent 4e6df2f9c8
commit 41420346c3

View File

@@ -51,7 +51,7 @@ public sealed partial class AtmosphereSystem
continue;
_currentRunAtmosphere.RemoveAt(i);
if (_currentRunAtmosphereIndex >= i)
if (_currentRunAtmosphereIndex > i)
_currentRunAtmosphereIndex--;
}
}