diff options
author | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-03 15:13:43 +0000 |
---|---|---|
committer | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-03 15:13:43 +0000 |
commit | ff179091355023a5875a48e3af447c184c3fe52c (patch) | |
tree | 9b665dc47283c258b2f16d148547d9819ade553d /src/map | |
parent | d8fd35ec71a88a56d3f93fff9ab54fbbd1e38c4a (diff) | |
download | hercules-ff179091355023a5875a48e3af447c184c3fe52c.tar.gz hercules-ff179091355023a5875a48e3af447c184c3fe52c.tar.bz2 hercules-ff179091355023a5875a48e3af447c184c3fe52c.tar.xz hercules-ff179091355023a5875a48e3af447c184c3fe52c.zip |
Fix a bug in atcommand_charspeed
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8100 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/atcommand.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <speed <%d-%d>> <char name>).", MIN_WALK_SPEED, MAX_WALK_SPEED);
clif_displaymessage(fd, atcmd_output);
return -1;
|