Update settings_parser.cpp

hopefully works
This commit is contained in:
Detanup01 2024-01-10 17:39:04 +01:00 committed by otavepto
parent 7f099ed0ad
commit 4afd10219d

View File

@ -807,7 +807,7 @@ static void parse_mods_folder(class Settings *settings_client, Settings *setting
newMod.primaryFileName = mod.value().value("primary_filename", std::string("")); newMod.primaryFileName = mod.value().value("primary_filename", std::string(""));
if(newMod.primaryFileName!=""){ if(newMod.primaryFileName!=""){
long begin = 0, end = 0; long begin = 0, end = 0;
const char* name = newMod.primaryFileName; const char* name = newMod.primaryFileName.c_str();
std::fstream file(name); std::fstream file(name);
begin = file.tellg(); begin = file.tellg();
file.seekg(0, std::ios::end); file.seekg(0, std::ios::end);