prevent index out of bounds ex when loading checkpoint at time before first object
This commit is contained in:
@@ -342,7 +342,9 @@ public class Game extends BasicGameState {
|
||||
while (objectIndex < gameObjects.length && beatmap.objects[objectIndex].getTime() <= checkpoint) {
|
||||
objectIndex++;
|
||||
}
|
||||
objectIndex--;
|
||||
if (objectIndex > 0) {
|
||||
objectIndex--;
|
||||
}
|
||||
if (Options.isMergingSliders()) {
|
||||
int obj = objectIndex;
|
||||
while (obj < gameObjects.length) {
|
||||
|
||||
Reference in New Issue
Block a user