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