Skip to content

Commit

Permalink
Merge pull request #4511 from mlichvar/main
Browse files Browse the repository at this point in the history
fix reproduction in game of life
  • Loading branch information
willmmiles authored and netmindz committed Feb 22, 2025
1 parent c46e328 commit e96fd8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/FX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5164,7 +5164,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;
Expand Down

0 comments on commit e96fd8a

Please sign in to comment.