Fix color wipe effect (#599)

This commit is contained in:
Otto Winter
2019-06-03 09:05:20 +02:00
parent c26a8b8718
commit 6b1b9ef7ec
4 changed files with 33 additions and 30 deletions
@@ -113,7 +113,7 @@ class AddressableColorWipeEffect : public AddressableLightEffect {
it.shift_right(1);
const AddressableColorWipeEffectColor color = this->colors_[this->at_color_];
const ESPColor esp_color = ESPColor(color.r, color.g, color.b, color.w);
if (!this->reverse_)
if (this->reverse_)
it[-1] = esp_color;
else
it[0] = esp_color;