From 7fdc28fe48db55238fad11773ab77efaf38dc40b Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Mon, 3 Jun 2019 06:43:02 +0200 Subject: [PATCH] Logging effect ID in CycleEffect. --- src/effect_cycle.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/effect_cycle.cpp b/src/effect_cycle.cpp index 00ac92b..4a724ca 100644 --- a/src/effect_cycle.cpp +++ b/src/effect_cycle.cpp @@ -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();