diff --git a/code/ryzom/server/src/ai_service/ai_outpost.cpp b/code/ryzom/server/src/ai_service/ai_outpost.cpp index fb2090617..0ef71b2ee 100644 --- a/code/ryzom/server/src/ai_service/ai_outpost.cpp +++ b/code/ryzom/server/src/ai_service/ai_outpost.cpp @@ -1271,7 +1271,10 @@ NLMISC_COMMAND(outpostSpawnSquad, "Spawns a squad in an outpost", " 6 ) - respawnTimeGC = atoi( args[6].c_str() ) * 10; + { + NLMISC::fromString(args[6], respawnTimeGC); + respawnTimeGC *= 10; + } for (size_t i=0; i<5; ++i) if (args[i]=="") diff --git a/code/ryzom/server/src/ai_service/ai_script_comp.cpp b/code/ryzom/server/src/ai_service/ai_script_comp.cpp index 0209eeec0..63f127483 100644 --- a/code/ryzom/server/src/ai_service/ai_script_comp.cpp +++ b/code/ryzom/server/src/ai_service/ai_script_comp.cpp @@ -237,7 +237,9 @@ public: if (params.size()!=2) throw ReadFightActionException("EVERY_SEC Needs 2 Params: