Skip to content

Commit 73a7e9b

Browse files
Fix the route not restarting when it reaches the end
1 parent ff72c49 commit 73a7e9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwiftSplit/CelesteSplitter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ class CelesteSplitter {
381381
server.split()
382382
}
383383

384-
nextEventIndex += 1
384+
nextEventIndex = (nextEventIndex + 1) % routeConfig.route.count
385385
continue route
386386
}
387387
}

0 commit comments

Comments
 (0)