aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2023-03-01 12:08:46 +0000
committerGitHub <noreply@github.com>2023-03-01 12:08:46 +0000
commit9f202caf9356ebaf5fd845210adea5e935d4350f (patch)
tree981c5a2ab25d98e49a53fce8b90f70dd4973f3ab
parentb46aca52ee3c30d5eea751d7b93e15f52bdff381 (diff)
parent651e511ff06a54934573764906de176a397ef5a0 (diff)
downloadPrismLauncher-9f202caf9356ebaf5fd845210adea5e935d4350f.tar.gz
PrismLauncher-9f202caf9356ebaf5fd845210adea5e935d4350f.tar.bz2
PrismLauncher-9f202caf9356ebaf5fd845210adea5e935d4350f.zip
Merge pull request #895 from Scrumplex/fix-component-creation
Use makeShared for importing components
-rw-r--r--launcher/minecraft/PackProfile.cpp2
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();