Skip to content

Commit e761085

Browse files
committed
Fixes #16 now correctly using an in range system number
1 parent 19940bb commit e761085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OTPKit/Components/Consumer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ final public class OTPConsumer: Component {
701701
// get the producer index
702702
guard let prodIndex = producers.firstIndex(where: { $0 == producer }) else { return }
703703

704-
let systemNumberIndex = Int(systemNumber)
704+
let systemNumberIndex = Int(systemNumber) - 1
705705

706706
// decide whether to store this folio/page
707707

0 commit comments

Comments
 (0)