summaryrefslogtreecommitdiff
path: root/src/char_sql/inter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char_sql/inter.c')
-rw-r--r--src/char_sql/inter.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/char_sql/inter.c b/src/char_sql/inter.c
index b4bc3ddc0..03ab85773 100644
--- a/src/char_sql/inter.c
+++ b/src/char_sql/inter.c
@@ -773,13 +773,16 @@ static void mapif_namechange_ack(int fd, int account_id, int char_id, int type,
int mapif_parse_NameChangeRequest(int fd)
{
- RFIFOHEAD(fd);
- int account_id = RFIFOL(fd, 2);
- int char_id = RFIFOL(fd, 6);
- int type = RFIFOB(fd, 10);
- char *name =RFIFOP(fd, 11);
+ int account_id, char_id, type;
+ char* name;
int i;
+ RFIFOHEAD(fd);
+ account_id = RFIFOL(fd, 2);
+ char_id = RFIFOL(fd, 6);
+ type = RFIFOB(fd, 10);
+ name = RFIFOP(fd, 11);
+
// Check Authorised letters/symbols in the name
if (char_name_option == 1) { // only letters/symbols in char_name_letters are authorised
for (i = 0; i < NAME_LENGTH && name[i]; i++)