fix index

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

View File

@ -32,8 +32,8 @@ func cycleMany(image img, iterations int) {
copy(cachedImages[i+1], image.raw)
}
period := i - start // length of a full period
copy(image.raw, cachedImages[start+((iterations-i-1)%period)]) // copy cachedImage into image.raw
period := i - start // length of a full period
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