mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Use make_intrusive/make_shared for smart pointer construction.
This commit is contained in:
@@ -34,7 +34,7 @@ void AddCardsScript::perform(Set& set, vector<CardP>& out) {
|
||||
// is this a new card?
|
||||
if (contains(set.cards,card) || contains(out,card)) {
|
||||
// make copy
|
||||
card = intrusive(new Card(*card));
|
||||
card = make_intrusive<Card>(*card);
|
||||
}
|
||||
out.push_back(card);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user