Skip to content

Commit 607e90a

Browse files
authored
Merge pull request #37 from bosphere/master
Fix missing index in time info item
2 parents 0f0c645 + 4f23ea1 commit 607e90a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/wallpapper/Generator.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ class Generator {
129129

130130
if let time = item.time {
131131
let timeItem = TimeItem()
132+
timeItem.i = index
132133
timeItem.t = Double(Calendar.current.component(.hour, from: time)) / 24.0
133134
sequenceInfo.ti.append(timeItem)
134135
}

0 commit comments

Comments
 (0)