Dear @ifesdjeen,
In this line, int firstFireOffset = (int) (firstDelay / resolution), firstFireOffset maybe is negative if firstDelay is so large.
I think all variable around should be long, and we just need cast to int when access wheel[index].
Please review this problem.
|
int firstFireOffset = (int) (firstDelay / resolution); |
Thanks and best regards,