diff --git a/examples/textures/textures_cellular_automata.c b/examples/textures/textures_cellular_automata.c index 4519df429..3b7745070 100644 --- a/examples/textures/textures_cellular_automata.c +++ b/examples/textures/textures_cellular_automata.c @@ -125,7 +125,7 @@ int main(void) if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT) && (mouseInCell >= 0)) { // Rule changed both by selecting a preset or toggling a bit - if ((mouseInCell >= 0) && (mouseInCell < 8)) + if (mouseInCell < 8) rule ^= (1 << mouseInCell); else rule = presetValues[mouseInCell - 8];