about summary refs log tree commit diff stats
path: root/src/server/loader.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/loader.nim')
-rw-r--r--src/server/loader.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/loader.nim b/src/server/loader.nim
index 2339408c..6a54ebcc 100644
--- a/src/server/loader.nim
+++ b/src/server/loader.nim
@@ -315,8 +315,8 @@ func findCachedHandle(ctx: LoaderContext; cacheId: int): InputHandle =
       return it
   return nil
 
-func find(cacheMap: seq[CachedItem]; id: int): int =
-  for i, it in cacheMap:
+func find(cacheMap: openArray[CachedItem]; id: int): int =
+  for i, it in cacheMap.mypairs:
     if it.id == id:
       return i
   -1