Fixed: Add config variable if not present

This commit is contained in:
kervala 2016-10-30 15:35:44 +01:00
parent 7023fc88ac
commit cc0ff91df5

View file

@ -288,6 +288,8 @@ void CConfig::setString( const char *key, const std::string &value )
} }
else 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);
} }
} }