diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-03-01 10:19:59 +0100 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2023-03-01 12:33:00 +0100 |
commit | 651e511ff06a54934573764906de176a397ef5a0 (patch) | |
tree | 981c5a2ab25d98e49a53fce8b90f70dd4973f3ab /launcher | |
parent | b46aca52ee3c30d5eea751d7b93e15f52bdff381 (diff) | |
download | PrismLauncher-651e511ff06a54934573764906de176a397ef5a0.tar.gz PrismLauncher-651e511ff06a54934573764906de176a397ef5a0.tar.bz2 PrismLauncher-651e511ff06a54934573764906de176a397ef5a0.zip |
fix: use makeShared for importing components
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher')
-rw-r--r-- | launcher/minecraft/PackProfile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/PackProfile.cpp b/launcher/minecraft/PackProfile.cpp index 13da57d9..aff05dbc 100644 --- a/launcher/minecraft/PackProfile.cpp +++ b/launcher/minecraft/PackProfile.cpp @@ -763,7 +763,7 @@ bool PackProfile::installComponents(QStringList selectedFiles) continue; } - appendComponent(new Component(this, versionFile->uid, versionFile)); + appendComponent(makeShared<Component>(this, versionFile->uid, versionFile)); } scheduleSave(); |