Fixed: Don't use current servers count if default one is hihger

--HG--
branch : develop
This commit is contained in:
kervala 2019-04-21 14:10:43 +02:00
parent 89fc46c778
commit d769a22686

View file

@ -121,7 +121,8 @@ bool CConfigFile::load(const QString &filename)
// only resize if added servers in local ryzom_installer.ini
CServers defaultServers = m_servers;
m_servers.resize(serversCount);
// only resize if servers count is greater than default ones
if (serversCount > m_servers.count()) m_servers.resize(serversCount);
for (int i = 0; i < serversCount; ++i)
{