Merge pull request #4511 from mlichvar/main

fix reproduction in game of life
This commit is contained in:
Will Miles 2025-01-21 19:56:51 -05:00 committed by GitHub
commit c9672b35ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5137,7 +5137,7 @@ uint16_t mode_2Dgameoflife(void) { // Written by Ewoud Wijma, inspired by https:
neighbors++;
bool colorFound = false;
int k;
for (k=0; k<9 && colorsCount[i].count != 0; k++)
for (k=0; k<9 && colorsCount[k].count != 0; k++)
if (colorsCount[k].color == prevLeds[xy]) {
colorsCount[k].count++;
colorFound = true;