From 16474478c8b6aa4122c449bccda4ad176bfe5cff Mon Sep 17 00:00:00 2001 From: Edremon <106028744+Edremon@users.noreply.github.com.> Date: Fri, 29 Nov 2024 21:34:48 +0000 Subject: [PATCH] Fix total_files_sizes fallback --- dll/settings_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/settings_parser.cpp b/dll/settings_parser.cpp index 27acdc45..8caef531 100644 --- a/dll/settings_parser.cpp +++ b/dll/settings_parser.cpp @@ -1015,7 +1015,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", "");