Explorar el Código

Fixed atcommand where parsing
* Fixes #2675.
* Resolves atcommand where not accepting players with spaces in their name.
Thanks to @Tokeiburu!

aleos89 hace 7 años
padre
commit
c5b7850a9a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/map/atcommand.cpp

+ 1 - 1
src/map/atcommand.cpp

@@ -513,7 +513,7 @@ ACMD_FUNC(where)
 	nullpo_retr(-1, sd);
 	memset(atcmd_player_name, '\0', sizeof atcmd_player_name);
 
-	if (!message || !*message || sscanf(message, "%23s[^\n]", atcmd_player_name) < 1) {
+	if (!message || !*message || sscanf(message, "%23[^\n]", atcmd_player_name) < 1) {
 		clif_displaymessage(fd, msg_txt(sd,910)); // Please enter a player name (usage: @where <char name>).
 		return -1;
 	}