From 014b8bd0abf66c3667b60e409de3592fb476ddde Mon Sep 17 00:00:00 2001 From: Vinicius Arroyo Date: Wed, 10 Aug 2016 13:23:35 +0000 Subject: [PATCH] fixes wrong initialization of max number of objects and npc spaws in egs --- .../src/entities_game_service/entities_game_service.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ryzom/server/src/entities_game_service/entities_game_service.cpp b/code/ryzom/server/src/entities_game_service/entities_game_service.cpp index 752e3db6e..6188be0ec 100644 --- a/code/ryzom/server/src/entities_game_service/entities_game_service.cpp +++ b/code/ryzom/server/src/entities_game_service/entities_game_service.cpp @@ -1223,12 +1223,12 @@ void CPlayerService::initConfigFileVars() MaxNbGuilds = 1000; CConfigFile::CVar *varMaxNbObjects = ConfigFile.getVarPtr("NbObjectsLimit"); - if ( varMaxNbPlayers ) + if ( varMaxNbObjects ) MaxNbObjects= varMaxNbPlayers->asInt(); else MaxNbObjects = 1000; CConfigFile::CVar *varMaxNbNpcSpawnedByEGS = ConfigFile.getVarPtr("NbNpcSpawnedByEGSLimit"); - if ( varMaxNbPlayers ) + if ( varMaxNbNpcSpawnedByEGS ) MaxNbNpcSpawnedByEGS = varMaxNbPlayers->asInt(); else MaxNbNpcSpawnedByEGS = 50;