CycleEffect now uses the ID of an effect within cycle_effects to prevent repeating an effect instead of comparing the objects.

This commit is contained in:
2019-06-04 05:56:33 +02:00
parent 46062945ff
commit 94687bab36
2 changed files with 5 additions and 5 deletions

View File

@ -7,6 +7,7 @@
class CycleEffect : public Effect {
private:
Effect* effect;
uint16_t effect_id = -1;
unsigned long effectSince = 0;
public:
void changeEffect();