diff options
Diffstat (limited to 'src/char/char.c')
-rw-r--r-- | src/char/char.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/char/char.c b/src/char/char.c index d7f7749c4..ee41e061d 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1493,6 +1493,9 @@ int make_new_char_sql(struct char_session_data* sd, char* name_, int str, int ag || (str + int_ != 10 || agi + luk != 10 || vit + dex != 10) ) // pairs #endif return -2; // invalid input + + if (hair_style > 17 || hair_color > 8) + return -2; // check the number of already existing chars in this account if( char_per_account != 0 ) { |