fix: Fix the error that CodeQL caught

Signed-off-by: txtsd <code@ihavea.quest>
This commit is contained in:
txtsd authored and DioEgizio committed 2022-11-13 18:54:55 +01:00
1 parent dcfc15a0a1
commit 0a04c3a2a7
1 file changed
+1 -1
@@ -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 {};
}