diff options
author | Haruna <haru@dotalux.com> | 2015-07-15 14:08:59 +0200 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2015-07-15 14:08:59 +0200 |
commit | 9a2f6e96f54ed1c3931bc441ed31da51bf785fdb (patch) | |
tree | deb6150d689b5f4bc0e8fe0e241183d2f6ac1cdc /src/char/pincode.c | |
parent | ebfc9c3f8d740414b13fff86bad44d077d7ae81e (diff) | |
parent | 245cab6b53ef3062608546a6fdb79af23f4e9780 (diff) | |
download | hercules-9a2f6e96f54ed1c3931bc441ed31da51bf785fdb.tar.gz hercules-9a2f6e96f54ed1c3931bc441ed31da51bf785fdb.tar.bz2 hercules-9a2f6e96f54ed1c3931bc441ed31da51bf785fdb.tar.xz hercules-9a2f6e96f54ed1c3931bc441ed31da51bf785fdb.zip |
Merge pull request #564 from 4144/checks
Add missing check to login and char server and remove useless checks from char and map servers
Diffstat (limited to 'src/char/pincode.c')
-rw-r--r-- | src/char/pincode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/char/pincode.c b/src/char/pincode.c index 43958af8a..5085349cc 100644 --- a/src/char/pincode.c +++ b/src/char/pincode.c @@ -21,9 +21,10 @@ struct pincode_interface pincode_s; void pincode_handle (int fd, struct char_session_data* sd) { - struct online_char_data* character = (struct online_char_data*)idb_get(chr->online_char_db, sd->account_id); + struct online_char_data* character; nullpo_retv(sd); + character = (struct online_char_data*)idb_get(chr->online_char_db, sd->account_id); if( character && character->pincode_enable > pincode->charselect ){ character->pincode_enable = pincode->charselect * 2; }else{ |