mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -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) {
|
||||
const auto &card = setsToUse[i];
|
||||
if (card.getProperty("uuid") == cardProviderId) {
|
||||
setsToUse.prepend(card);
|
||||
setsToUse.removeAt(i + 1);
|
||||
setsToUse.move(i, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue