diff --git a/launcher/core/src/squareboot.cpp b/launcher/core/src/squareboot.cpp index 5e373d7..068ecfd 100644 --- a/launcher/core/src/squareboot.cpp +++ b/launcher/core/src/squareboot.cpp @@ -77,7 +77,7 @@ void SquareBoot::bootCheck(const LoginInformation& info) { dialog->setValue(recieved); }); - connect(patchReply, &QNetworkReply::finished, [&] { + connect(patchReply, &QNetworkReply::finished, [=, &info] { const QString dataDir = QStandardPaths::writableLocation(QStandardPaths::TempLocation); diff --git a/launcher/desktop/src/launcherwindow.cpp b/launcher/desktop/src/launcherwindow.cpp index 2e8fe23..e35ebb0 100644 --- a/launcher/desktop/src/launcherwindow.cpp +++ b/launcher/desktop/src/launcherwindow.cpp @@ -260,11 +260,11 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo connect(core.assetUpdater, &AssetUpdater::finishedUpdating, [=] { auto& profile = currentProfile(); - LoginInformation info; - info.settings = &profile; - info.username = usernameEdit->text(); - info.password = passwordEdit->text(); - info.oneTimePassword = otpEdit->text(); + LoginInformation* info = new LoginInformation(); + info->settings = &profile; + info->username = usernameEdit->text(); + info->password = passwordEdit->text(); + info->oneTimePassword = otpEdit->text(); #ifndef QT_DEBUG if(currentProfile().rememberUsername) { @@ -285,9 +285,9 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo #endif if(currentProfile().isSapphire) { - this->core.sapphireLauncher->login(currentProfile().lobbyURL, info); + this->core.sapphireLauncher->login(currentProfile().lobbyURL, *info); } else { - this->core.squareBoot->checkGateStatus(&info); + this->core.squareBoot->checkGateStatus(info); } });