aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/tasks
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-09-16 20:00:36 -0300
committerflow <flowlnlnln@gmail.com>2022-09-16 20:12:30 -0300
commitc9eb584ac80956730dd56068945f6791e29716b3 (patch)
tree0ccbfb8ab5d42d115b861af972eb45b54014091e /launcher/minecraft/mod/tasks
parent10493bd44ab59171ac4f2e3ab7b600bcff8e4af6 (diff)
downloadPrismLauncher-c9eb584ac80956730dd56068945f6791e29716b3.tar.gz
PrismLauncher-c9eb584ac80956730dd56068945f6791e29716b3.tar.bz2
PrismLauncher-c9eb584ac80956730dd56068945f6791e29716b3.zip
fix: prevent deletes by shared pointer accidental creation
This fixes the launcher crashing when opening the game :iea: Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/minecraft/mod/tasks')
-rw-r--r--launcher/minecraft/mod/tasks/ModFolderLoadTask.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/mod/tasks/ModFolderLoadTask.cpp b/launcher/minecraft/mod/tasks/ModFolderLoadTask.cpp
index 40a6ba18..78ef4386 100644
--- a/launcher/minecraft/mod/tasks/ModFolderLoadTask.cpp
+++ b/launcher/minecraft/mod/tasks/ModFolderLoadTask.cpp
@@ -99,7 +99,7 @@ void ModFolderLoadTask::executeTask()
// Remove orphan metadata to prevent issues
// See https://github.com/PolyMC/PolyMC/issues/996
if (m_clean_orphan) {
- QMutableMapIterator<QString, Mod::Ptr> iter(m_result->mods);
+ QMutableMapIterator iter(m_result->mods);
while (iter.hasNext()) {
auto mod = iter.next().value();
if (mod->status() == ModStatus::NotInstalled) {