Commit 455f631b authored by nanahira's avatar nanahira

fix

parent 4b1ff34c
......@@ -1214,13 +1214,13 @@ bool ClientField::CheckSelectSum() {
if (select_mode == 0) { // sum equal
bool ret = check_sel_sum_s(selable, 0, select_sumval);
selectable_cards.clear();
for(auto sc : selected_cards) {
selectable_cards.push_back(sc);
}
for(auto sc : selectsum_cards) {
sc->is_selectable = true;
selectable_cards.push_back(sc);
}
for(auto sc : selected_cards) {
selectable_cards.push_back(sc);
}
return ret;
} else { // sum greater
int mm = -1, mx = -1, max = 0, sumc = 0;
......@@ -1278,13 +1278,13 @@ bool ClientField::CheckSelectSum() {
}
}
selectable_cards.clear();
for(auto sc : selected_cards) {
selectable_cards.push_back(sc);
}
for(auto sc : selectsum_cards) {
sc->is_selectable = true;
selectable_cards.push_back(sc);
}
for(auto sc : selected_cards) {
selectable_cards.push_back(sc);
}
return ret;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment