fix index

This commit is contained in:
onyx-and-iris 2023-12-15 01:37:15 +00:00
parent 219bb3884b
commit 92ff666ae2

View File

@ -33,7 +33,7 @@ func cycleMany(image img, iterations int) {
} }
period := i - start // length of a full period period := i - start // length of a full period
copy(image.raw, cachedImages[start+((iterations-i-1)%period)]) // copy cachedImage into image.raw copy(image.raw, cachedImages[start+((iterations-i-1)%period)+1]) // copy cachedImage into image.raw
} }
// two returns the load of all boulders after 1000000000 cycles // two returns the load of all boulders after 1000000000 cycles