mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 17:02:15 -07:00
Use move instead of push/remove
This commit is contained in:
parent
46973f7e59
commit
24eebd1d96
1 changed files with 1 additions and 2 deletions
|
|
@ -178,8 +178,7 @@ void PrintingSelector::getAllSetsForCurrentCard()
|
||||||
for (int i = 0; i < setsToUse.size(); ++i) {
|
for (int i = 0; i < setsToUse.size(); ++i) {
|
||||||
const auto &card = setsToUse[i];
|
const auto &card = setsToUse[i];
|
||||||
if (card.getProperty("uuid") == cardProviderId) {
|
if (card.getProperty("uuid") == cardProviderId) {
|
||||||
setsToUse.prepend(card);
|
setsToUse.move(i, 0);
|
||||||
setsToUse.removeAt(i + 1);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue