From 9a540379d7d4c4a94f1c42fb43770b3c93032942 Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 10 Aug 2016 15:45:28 +0200 Subject: [PATCH] Fixed: Wrong variable names --- .../src/entities_game_service/entities_game_service.cpp | 5 +++-- 1 file changed, 3 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 6188be0ec..5d142aa66 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 @@ -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");