aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/technic/SolderPackManifest.cpp
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-05-18 17:17:16 -0300
committerflow <flowlnlnln@gmail.com>2022-05-18 17:17:16 -0300
commit441075f61051cce8e5d6b0311febdefc087fdbbf (patch)
treef6cc3d2fbdad8e0824a92ca4c264c79ae3275157 /launcher/modplatform/technic/SolderPackManifest.cpp
parentb2878dca1d129dbd76c60881df22c2e65c7ae26c (diff)
downloadPrismLauncher-441075f61051cce8e5d6b0311febdefc087fdbbf.tar.gz
PrismLauncher-441075f61051cce8e5d6b0311febdefc087fdbbf.tar.bz2
PrismLauncher-441075f61051cce8e5d6b0311febdefc087fdbbf.zip
fix: version field in technic pack manifest being null
Sometimes, the version field, that is supposed to be a string, was a null instead. Inspecting other entries, seems like the default for not having a version should be "", so I made it like that in case the version was null. I hope this fixes the issue :^)
Diffstat (limited to 'launcher/modplatform/technic/SolderPackManifest.cpp')
-rw-r--r--launcher/modplatform/technic/SolderPackManifest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/modplatform/technic/SolderPackManifest.cpp b/launcher/modplatform/technic/SolderPackManifest.cpp
index 16fe0b0e..e52a7ec0 100644
--- a/launcher/modplatform/technic/SolderPackManifest.cpp
+++ b/launcher/modplatform/technic/SolderPackManifest.cpp
@@ -37,7 +37,7 @@ void loadPack(Pack& v, QJsonObject& obj)
static void loadPackBuildMod(PackBuildMod& b, QJsonObject& obj)
{
b.name = Json::requireString(obj, "name");
- b.version = Json::requireString(obj, "version");
+ b.version = Json::ensureString(obj, "version", "");
b.md5 = Json::requireString(obj, "md5");
b.url = Json::requireString(obj, "url");
}