From 74b8e841fcaf7454fa677bf6225036f4d2ebaa26 Mon Sep 17 00:00:00 2001 From: Fate Date: Sat, 8 Nov 2008 06:33:00 +0000 Subject: * Changed @setmagic parameter sequence (character name now goes last) to better conform to other commands --- src/map/atcommand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 31fd0fe..fd0acc5 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -7826,8 +7826,8 @@ atcommand_set_magic(const int fd, struct map_session_data* sd, memset(character, '\0', sizeof(character)); - if (!message || !*message || sscanf(message, "%99s %19s %i", character, magic_type, &value) < 1) { - clif_displaymessage(fd, "Usage: @setmagic , where is either `magic', one of the school names, or `all'."); + if (!message || !*message || sscanf(message, "%19s %i %99s", magic_type, &value, character) < 1) { + clif_displaymessage(fd, "Usage: @setmagic , where is either `magic', one of the school names, or `all'."); return -1; } -- cgit v1.2.3-70-g09d2