From 73a7e9b4bba45db2566c9665c65ede612d58e18a Mon Sep 17 00:00:00 2001 From: Pierce Corcoran Date: Tue, 12 Apr 2022 20:19:14 -0700 Subject: [PATCH] Fix the route not restarting when it reaches the end --- SwiftSplit/CelesteSplitter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SwiftSplit/CelesteSplitter.swift b/SwiftSplit/CelesteSplitter.swift index 40aa1fa..0c18d8f 100644 --- a/SwiftSplit/CelesteSplitter.swift +++ b/SwiftSplit/CelesteSplitter.swift @@ -381,7 +381,7 @@ class CelesteSplitter { server.split() } - nextEventIndex += 1 + nextEventIndex = (nextEventIndex + 1) % routeConfig.route.count continue route } }