X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Ffetch_group.cpp;h=75e458a4f9b80ed9c60c598935c3ca51846ffa77;hp=bdaa0c9a9b309e469e24fde3db634eb51d983030;hb=32d2a098bec8a1ace0f86f28110da45d060f8447;hpb=6cd673299df1e8eaabdf6e538b19dc617514c82a diff --git a/bigscreen/fetch_group.cpp b/bigscreen/fetch_group.cpp index bdaa0c9..75e458a 100644 --- a/bigscreen/fetch_group.cpp +++ b/bigscreen/fetch_group.cpp @@ -52,6 +52,7 @@ void FetchGroup::operator() (pqxx::transaction<> &t) sc.score = -1; } else { sc.score = i["score"].as(sc.score); + curr_group.players[curr_group.players.size() - 1].total += sc.score; } curr_group.players[curr_group.players.size() - 1].scores.push_back(sc);