fixes wrong initialization of max number of objects and npc spaws in egs

This commit is contained in:
Vinicius Arroyo 2016-08-10 13:23:35 +00:00
parent 16d6357cb6
commit 7cf8de2922

View file

@ -1223,12 +1223,12 @@ void CPlayerService::initConfigFileVars()
MaxNbGuilds = 1000; MaxNbGuilds = 1000;
CConfigFile::CVar *varMaxNbObjects = ConfigFile.getVarPtr("NbObjectsLimit"); CConfigFile::CVar *varMaxNbObjects = ConfigFile.getVarPtr("NbObjectsLimit");
if ( varMaxNbPlayers ) if ( varMaxNbObjects )
MaxNbObjects= varMaxNbPlayers->asInt(); MaxNbObjects= varMaxNbPlayers->asInt();
else else
MaxNbObjects = 1000; MaxNbObjects = 1000;
CConfigFile::CVar *varMaxNbNpcSpawnedByEGS = ConfigFile.getVarPtr("NbNpcSpawnedByEGSLimit"); CConfigFile::CVar *varMaxNbNpcSpawnedByEGS = ConfigFile.getVarPtr("NbNpcSpawnedByEGSLimit");
if ( varMaxNbPlayers ) if ( varMaxNbNpcSpawnedByEGS )
MaxNbNpcSpawnedByEGS = varMaxNbPlayers->asInt(); MaxNbNpcSpawnedByEGS = varMaxNbPlayers->asInt();
else else
MaxNbNpcSpawnedByEGS = 50; MaxNbNpcSpawnedByEGS = 50;