Fixes off-by-one error calculating frames
This commit is contained in:
parent
83af8cb0f4
commit
c9f8b1a115
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ type FrameType struct {
|
|||
// Create a function that returns the next frame, based on length
|
||||
func DefaultGetFrame(frames []string) func(int) string {
|
||||
return func(i int) string {
|
||||
return frames[i%(len(frames)-1)]
|
||||
return frames[i%(len(frames))]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue