fix: Fix the error that CodeQL caught
Signed-off-by: txtsd <code@ihavea.quest>
This commit is contained in:
parent
dcfc15a0a1
commit
0a04c3a2a7
@ -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 {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user