Fixed: Add config variable if not present

--HG--
branch : develop
feature/pipeline-tools
kervala 8 years ago
parent 8f6aa83a7b
commit 86415a3c2b

@ -288,6 +288,8 @@ void CConfig::setString( const char *key, const std::string &value )
}
else
{
nlwarning( "Couldn't find key %s in %s.", key, cf.getFilename().c_str() );
NLMISC::CConfigFile::CVar var;
var.forceAsString(value);
cf.insertVar(key, var);
}
}

Loading…
Cancel
Save