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 | |
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
-rw-r--r-- | Changelog-Trunk.txt | 1 | ||||
-rw-r--r-- | src/map/atcommand.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 79a910f40..b50a46a3e 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,7 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/08/03
+ * Fix a bug in atcommand_charspeed [Toms]
* Fixed a logic error preventing from cooking anything [DracoRPG]
* Cleaned up the last NJ update code. [Skotlex]
* Added @ command `charspeed` [Skotlex]
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;
|