diff options
Diffstat (limited to 'src/char/char.c')
-rw-r--r-- | src/char/char.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/char/char.c b/src/char/char.c index fcb4535..4b59b67 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -48,6 +48,12 @@ void echar_parse_char_create_new_char(int *fdPtr, struct char_session_data* sd) chr->mmo_char_fromsql(result, &char_dat, false); //Only the short data is needed. const uint16 race = RFIFOW(fd, 31); + if (race > max_char_class) + { + chr->creation_failed(fd, 10); + hookStop(); + return; + } char_dat.class_ = race; chr->mmo_char_tosql(result, &char_dat); |