Fix index out of range exception in atmosphere system (#22770)
This commit is contained in:
@@ -51,7 +51,7 @@ public sealed partial class AtmosphereSystem
|
||||
continue;
|
||||
|
||||
_currentRunAtmosphere.RemoveAt(i);
|
||||
if (_currentRunAtmosphereIndex >= i)
|
||||
if (_currentRunAtmosphereIndex > i)
|
||||
_currentRunAtmosphereIndex--;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user