about summary refs log tree commit diff
path: root/src/Xanthous/Data/Levels.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Xanthous/Data/Levels.hs')
-rw-r--r--src/Xanthous/Data/Levels.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Xanthous/Data/Levels.hs b/src/Xanthous/Data/Levels.hs
index 5fc3f9334138..efc0f53acecf 100644
--- a/src/Xanthous/Data/Levels.hs
+++ b/src/Xanthous/Data/Levels.hs
@@ -102,7 +102,7 @@ nextLevel genLevel levs
   = pure $ seeks succ levs
   | otherwise
   = genLevel <&> \level ->
-      seek (pos levs + 1) . partialMkLevels $ level <| allLevels levs
+      seek (pos levs + 1) . partialMkLevels $ allLevels levs |> level
 
 -- | Go to the previous level. Returns Nothing if 'pos' is 0
 prevLevel :: Levels level -> Maybe (Levels level)