diff --git a/api/logic/modplatform/ftb/FtbPrivatePackManager.cpp b/api/logic/modplatform/ftb/FtbPrivatePackManager.cpp index 15449592..c3477cec 100644 --- a/api/logic/modplatform/ftb/FtbPrivatePackManager.cpp +++ b/api/logic/modplatform/ftb/FtbPrivatePackManager.cpp @@ -26,7 +26,8 @@ void FtbPrivatePackManager::save() const } try { - FS::write(m_filename, currentPacks.toList().join('\n').toUtf8()); + QStringList list = currentPacks.toList(); + FS::write(m_filename, list.join('\n').toUtf8()); dirty = false; } catch(...)