X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bigscreen%2Ftop5chosenscreen.cpp;h=702b24fdab551d5e2e8665abfde40c65b8b1f0d4;hb=6bd21f38c6a860ba75ea98f2404c83d9bd55498a;hp=13cc0b911aeb69029fb816b9642b6fb98ee3ff72;hpb=7490ced526e0ac9a19d62b95a81244c1d01df226;p=ccbs diff --git a/bigscreen/top5chosenscreen.cpp b/bigscreen/top5chosenscreen.cpp index 13cc0b9..702b24f 100644 --- a/bigscreen/top5chosenscreen.cpp +++ b/bigscreen/top5chosenscreen.cpp @@ -25,6 +25,7 @@ bool Top5ChosenScreen::check_invalidated() return true; if (!scores_changed.get_flag()) return false; + scores_changed.reset_flag(); // check that there are indeed changes, otherwise don't bother std::vector scores; @@ -32,6 +33,7 @@ bool Top5ChosenScreen::check_invalidated() for (std::vector::const_iterator i = scores.begin(); i != scores.end(); ++i) { if (seen_topchosen.count(*i) == 0) { + valid = false; return true; } }