diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-21 22:16:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-12 13:39:11 +0300 |
commit | 58726366cecccc4cb44ec4978dc2620b54c5fb4f (patch) | |
tree | 2d63645f269778fa78aef675a3b67600620043d2 | |
parent | b885110e0110048c1bcfd01d248436b797f7cb6b (diff) | |
download | hercules-58726366cecccc4cb44ec4978dc2620b54c5fb4f.tar.gz hercules-58726366cecccc4cb44ec4978dc2620b54c5fb4f.tar.bz2 hercules-58726366cecccc4cb44ec4978dc2620b54c5fb4f.tar.xz hercules-58726366cecccc4cb44ec4978dc2620b54c5fb4f.zip |
Add missing checks to 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{ |