From 7f099ed0ad22e411daa4581a8df2602e3f52899d Mon Sep 17 00:00:00 2001 From: Detanup01 <91248446+Detanup01@users.noreply.github.com> Date: Tue, 9 Jan 2024 23:02:35 +0100 Subject: [PATCH] Update settings_parser.cpp Fixed issue --- 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 573c913c..99f9d34a 100644 --- a/dll/settings_parser.cpp +++ b/dll/settings_parser.cpp @@ -807,7 +807,7 @@ static void parse_mods_folder(class Settings *settings_client, Settings *setting newMod.primaryFileName = mod.value().value("primary_filename", std::string("")); if(newMod.primaryFileName!=""){ long begin = 0, end = 0; - const char* name = primaryFileName; + const char* name = newMod.primaryFileName; std::fstream file(name); begin = file.tellg(); file.seekg(0, std::ios::end);