diff --git a/src/Core/Entities/OOFlasherEntity.m b/src/Core/Entities/OOFlasherEntity.m index e2a6cf71..c3000913 100644 --- a/src/Core/Entities/OOFlasherEntity.m +++ b/src/Core/Entities/OOFlasherEntity.m @@ -121,7 +121,8 @@ MA 02110-1301, USA. if (!_justSwitched && wave > _wave) // don't test for wave >= _wave - could give wrong results with very low frequencies { _justSwitched = YES; - _activeColor = ++_activeColor % count; + ++_activeColor; + _activeColor %= count; //_activeColor = ++_activeColor % count; is potentially undefined operation [self setColor:[_colors objectAtIndex:_activeColor]]; } }