Logging effect ID in CycleEffect.

This commit is contained in:
Fabian Schlenz 2019-06-03 06:43:02 +02:00
parent 4064357d5c
commit 7fdc28fe48

View File

@ -2,10 +2,12 @@
void CycleEffect::changeEffect() {
Effect* new_effect;
int new_id;
do {
int new_id = random8(cycle_effects->size());
new_id = random8(cycle_effects->size());
new_effect = cycle_effects->get(new_id);
} while (&new_effect == &effect);
LOG("CycleEffect * Changing effect to ID "); LOGln(new_id);
if (effect) effect->stop();
effect = new_effect;
effect->start();