mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
pointer not being initialized
Signed-off-by: Charlie <u7919347@anu.edu.au>
This commit is contained in:
parent
afbc81bc38
commit
29363db4a5
1 changed files with 2 additions and 2 deletions
|
|
@ -192,7 +192,7 @@ auto Mod::side() const -> QString
|
|||
auto Mod::mcVersions() const -> QString
|
||||
{
|
||||
if (metadata())
|
||||
return groupMcVersions();
|
||||
return groupMcVersions();
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
@ -201,7 +201,7 @@ auto Mod::groupMcVersions() const -> QString
|
|||
static QStringList s_releasedMcVersions = []() {
|
||||
// Gets all of minecrafts vanilla versions
|
||||
auto vlist = APPLICATION->metadataIndex()->get("net.minecraft");
|
||||
VersionSelectWidget* versionList(nullptr);
|
||||
VersionSelectWidget* versionList = new VersionSelectWidget(nullptr);
|
||||
versionList->initialize(vlist.get());
|
||||
//Filters to only main released versions (like 1.19.2, 1.8.9)
|
||||
versionList->setFilter(BaseVersionList::TypeRole, Filters::regexp(QRegularExpression("(release)")));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue