From 83e53dcaa8bddb0c8319218109d3df9e675fb6a9 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 29 May 2022 23:40:50 -0400 Subject: [PATCH] Fix crash when game is not installed --- launcher/core/src/launchercore.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/launcher/core/src/launchercore.cpp b/launcher/core/src/launchercore.cpp index edfb7f3..697a330 100755 --- a/launcher/core/src/launchercore.cpp +++ b/launcher/core/src/launchercore.cpp @@ -497,8 +497,7 @@ void LauncherCore::readWineInfo(ProfileSettings& profile) { void LauncherCore::readGameVersion() { for(auto& profile : profileSettings) { - profile->bootVersion = readVersion(profile->gamePath + "/boot/ffxivboot.ver"); - profile->installedMaxExpansion = 0; + profile.bootVersion = readVersion(profile.gamePath + "/boot/ffxivboot.ver"); auto sqpackDirectories = QDir(profile->gamePath + "/game/sqpack/").entryList(QDir::Filter::Dirs | QDir::Filter::NoDotAndDotDot); profile->gameVersions.resize(sqpackDirectories.size());