eqemu_config is now persistent after first load.

This commit is contained in:
Xackery 2017-07-16 23:05:09 -07:00
parent 4ed6e20b35
commit e61e7fd008
2 changed files with 3 additions and 2 deletions

View File

@ -45,9 +45,10 @@ void EQEmuConfig::parse_config() {
LoginPassword = _root["server"]["world"]["loginserver"].get("password", "").asString();
} else {
char str[32];
loginlist.Clear();
do {
sprintf(str, "loginserver%i", ++LoginCount);
if (_root["server"]["world"][str].get("host", "").asString() == "") {
if (!_root["server"]["world"][str].isObject()) {
break;
}

View File

@ -146,7 +146,7 @@ class EQEmuConfig
static bool LoadConfig()
{
if (_config != nullptr) {
delete _config;
return true;
}
_config = new EQEmuConfig;