got rid of duplicates in list

This commit is contained in:
Jared Bruni
2020-01-10 20:46:18 -08:00
parent cde17e9efe
commit 24729b7de5
3 changed files with 40 additions and 4 deletions

View File

@@ -356,7 +356,7 @@ void Playback::run() {
if(_custom_cycle_index > static_cast<int>(cur.size()-1))
_custom_cycle_index = 0;
if(_custom_cycle_index >= 0 && _custom_cycle_index < cur.size()) {
if(_custom_cycle_index >= 0 && _custom_cycle_index < static_cast<int>(cur.size())) {
drawFilter(frame, cur[_custom_cycle_index]);
msleep(duration/2);
}