fix: Fix the error that CodeQL caught

Signed-off-by: txtsd <code@ihavea.quest>
This commit is contained in:
txtsd 2022-11-13 19:08:37 +05:30 committed by DioEgizio
parent dcfc15a0a1
commit 0a04c3a2a7

View File

@ -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 {};
}