Merge pull request #106 from Edremon/fix/total_files_sizes

Fix total_files_sizes fallback
This commit is contained in:
Detanup01 2024-12-01 19:57:16 +01:00 committed by GitHub
commit d50f693348
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1030,7 +1030,7 @@ static void try_parse_mods_file(class Settings *settings_client, Settings *setti
}
newMod.previewFileSize = mod.value().value("preview_filesize", preview_filesize);
newMod.total_files_sizes = mod.value().value("total_files_sizes", primary_filesize);
newMod.total_files_sizes = mod.value().value("total_files_sizes", newMod.primaryFileSize);
newMod.min_game_branch = mod.value().value("min_game_branch", "");
newMod.max_game_branch = mod.value().value("max_game_branch", "");