Commit a8a8b8a9 authored by nanahira's avatar nanahira

fix

parent f9c61991
......@@ -1201,13 +1201,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;
......@@ -1265,13 +1265,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