From ff179091355023a5875a48e3af447c184c3fe52c Mon Sep 17 00:00:00 2001 From: toms Date: Thu, 3 Aug 2006 15:13:43 +0000 Subject: Fix a bug in atcommand_charspeed git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8100 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 7fac911d9..7117a8265 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -2154,7 +2154,7 @@ int atcommand_charspeed( memset(atcmd_output, '\0', sizeof(atcmd_output)); memset(atcmd_player_name, '\0', sizeof(atcmd_player_name)); - if (!message || !*message || sscanf(message, "%d %23[^\n]", speed, atcmd_player_name) < 2) { + if (!message || !*message || sscanf(message, "%d %23[^\n]", &speed, atcmd_player_name) < 2) { sprintf(atcmd_output, "Please, enter a speed and a player name (usage: @charspeed > ).", MIN_WALK_SPEED, MAX_WALK_SPEED); clif_displaymessage(fd, atcmd_output); return -1; -- cgit v1.2.3-70-g09d2