mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-01 16:05:58 +00:00
Fixed: Add config variable if not present
This commit is contained in:
parent
bbbf5cc28e
commit
50528fcfa0
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue