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>
This commit is contained in:
parent
10493bd44a
commit
c9eb584ac8
4 changed files with 6 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue