aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/ComponentUpdateTask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/minecraft/ComponentUpdateTask.cpp')
-rw-r--r--launcher/minecraft/ComponentUpdateTask.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/ComponentUpdateTask.cpp b/launcher/minecraft/ComponentUpdateTask.cpp
index 6db21622..d55bc17f 100644
--- a/launcher/minecraft/ComponentUpdateTask.cpp
+++ b/launcher/minecraft/ComponentUpdateTask.cpp
@@ -572,7 +572,7 @@ void ComponentUpdateTask::resolveDependencies(bool checkOnly)
// add stuff...
for(auto &add: toAdd)
{
- ComponentPtr component = new Component(d->m_list, add.uid);
+ auto component = makeShared<Component>(d->m_list, add.uid);
if(!add.equalsVersion.isEmpty())
{
// exact version