summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-12 00:54:28 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-14 20:02:08 +0300
commit7fcf3c6d5ce824a0d75e7e816af08505b09baa43 (patch)
treecc7f37d0e94fffb7abbd90b0f6826fffa3240d68 /src/char
parent71dd30608d86505a91810e45fb8625025fd31edd (diff)
downloadhercules-7fcf3c6d5ce824a0d75e7e816af08505b09baa43.tar.gz
hercules-7fcf3c6d5ce824a0d75e7e816af08505b09baa43.tar.bz2
hercules-7fcf3c6d5ce824a0d75e7e816af08505b09baa43.tar.xz
hercules-7fcf3c6d5ce824a0d75e7e816af08505b09baa43.zip
Fix compilation warning in char.c
Diffstat (limited to 'src/char')
-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