Make mcInstance mutable

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2023-06-03 13:44:09 +01:00
parent e26827b849
commit 3c87e5d31e
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ ModrinthPackExportTask::ModrinthPackExportTask(const QString& name,
, version(version)
, summary(summary)
, instance(instance)
, mcInstance(dynamic_cast<const MinecraftInstance*>(instance.get()))
, mcInstance(dynamic_cast<MinecraftInstance*>(instance.get()))
, gameRoot(instance->gameRoot())
, output(output)
, filter(filter)

View File

@ -51,7 +51,7 @@ class ModrinthPackExportTask : public Task {
// inputs
const QString name, version, summary;
const InstancePtr instance;
const MinecraftInstance* mcInstance;
MinecraftInstance* mcInstance;
const QDir gameRoot;
const QString output;
const MMCZip::FilterFunction filter;