aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authortxtsd <code@ihavea.quest>2022-11-13 19:08:37 +0530
committerDioEgizio <83089242+DioEgizio@users.noreply.github.com>2022-11-13 18:54:55 +0100
commit0a04c3a2a77bda4e60d04f651c7ab5006ee02449 (patch)
tree991613cc7a080ba0f678feae4dfed2969630b42b /launcher
parentdcfc15a0a16c3b0d64086621cec8ef8ffc722832 (diff)
downloadPrismLauncher-0a04c3a2a77bda4e60d04f651c7ab5006ee02449.tar.gz
PrismLauncher-0a04c3a2a77bda4e60d04f651c7ab5006ee02449.tar.bz2
PrismLauncher-0a04c3a2a77bda4e60d04f651c7ab5006ee02449.zip
fix: Fix the error that CodeQL caught
Signed-off-by: txtsd <code@ihavea.quest>
Diffstat (limited to 'launcher')
-rw-r--r--launcher/minecraft/mod/tasks/LocalModParseTask.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/mod/tasks/LocalModParseTask.cpp b/launcher/minecraft/mod/tasks/LocalModParseTask.cpp
index a694e7b2..774f6114 100644
--- a/launcher/minecraft/mod/tasks/LocalModParseTask.cpp
+++ b/launcher/minecraft/mod/tasks/LocalModParseTask.cpp
@@ -121,7 +121,7 @@ ModDetails ReadMCModTOML(QByteArray contents)
return {};
}
auto modsTable = tomlModsTable0->as_table();
- if (!tomlModsTable0) {
+ if (!modsTable) {
qWarning() << "Corrupted mods.toml? [[mods]] was not a table!";
return {};
}