diff options
author | txtsd <code@ihavea.quest> | 2022-11-13 19:08:37 +0530 |
---|---|---|
committer | DioEgizio <83089242+DioEgizio@users.noreply.github.com> | 2022-11-13 18:54:55 +0100 |
commit | 0a04c3a2a77bda4e60d04f651c7ab5006ee02449 (patch) | |
tree | 991613cc7a080ba0f678feae4dfed2969630b42b /launcher/minecraft/mod | |
parent | dcfc15a0a16c3b0d64086621cec8ef8ffc722832 (diff) | |
download | PrismLauncher-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/minecraft/mod')
-rw-r--r-- | launcher/minecraft/mod/tasks/LocalModParseTask.cpp | 2 |
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 {}; } |