Fixed: Wrong variable names

This commit is contained in:
kervala 2016-08-10 15:45:28 +02:00
parent 3567670b49
commit 9a540379d7

View file

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