mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 18:36:58 +03:00
fix crash when failing to download file (#4249)
This commit is contained in:
commit
609aa9f7f3
1 changed files with 1 additions and 1 deletions
|
|
@ -249,7 +249,7 @@ bool ModrinthCreationTask::createInstance()
|
|||
auto root_modpack_url = QUrl::fromLocalFile(root_modpack_path);
|
||||
// TODO make this work with other sorts of resource
|
||||
QHash<QString, Resource*> resources;
|
||||
for (auto file : m_files) {
|
||||
for (auto& file : m_files) {
|
||||
auto fileName = file.path;
|
||||
fileName = FS::RemoveInvalidPathChars(fileName);
|
||||
auto file_path = FS::PathCombine(root_modpack_path, fileName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue