diff --git a/dll/settings_parser.cpp b/dll/settings_parser.cpp index 99f9d34a..f8e3a8a2 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 = newMod.primaryFileName; + const char* name = newMod.primaryFileName.c_str(); std::fstream file(name); begin = file.tellg(); file.seekg(0, std::ios::end);