diff --git a/ryzom/server/src/entities_game_service/mission_manager/missions_commands.cpp b/ryzom/server/src/entities_game_service/mission_manager/missions_commands.cpp index 9c665a743..c48a806e0 100644 --- a/ryzom/server/src/entities_game_service/mission_manager/missions_commands.cpp +++ b/ryzom/server/src/entities_game_service/mission_manager/missions_commands.cpp @@ -2519,7 +2519,6 @@ NLMISC_COMMAND(setUrl, "changes the url of a bot", " [] [< return true; } - //---------------------------------------------------------------------------- NLMISC_COMMAND(temporaryRename, "rename a player for the event", " ") { @@ -2557,7 +2556,6 @@ NLMISC_COMMAND(getArkMissions,"dump character ark missions","") return true; } - //----------------------------------------------- NLMISC_COMMAND(getPlayerStats,"get player stats"," ") { @@ -2687,7 +2685,6 @@ NLMISC_COMMAND(addCheckPos,"add check pos"," ") { @@ -3146,11 +3143,11 @@ NLMISC_COMMAND(addPlayerPet, "add a pet to player", " [size] [nam CSheetId ticket = CSheetId(args[1]); uint8 size = 100; - if (args.size() == 3) + if (args.size() >= 3) fromString(args[2], size); ucstring customName; - if (args.size() == 4) + if (args.size() >= 4) customName.fromUtf8(args[3]); if (ticket != CSheetId::Unknown)