summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 1197e2811..93078f8ee 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -4677,7 +4677,9 @@ void char_parse_char_create_new_char(int fd, struct char_session_data* sd)
sex = 'M';
break;
default:
- return -2; // Char Creation Denied
+ chr->creation_failed(fd, -2); // Char Creation Denied
+ RFIFOSKIP(fd, 36);
+ return;
}
result = chr->make_new_char_sql(sd, RFIFOP(fd, 2), 1, 1, 1, 1, 1, 1, RFIFOB(fd, 26), RFIFOW(fd, 27), RFIFOW(fd, 29), RFIFOW(fd, 31), sex);
#elif PACKETVER >= 20120307