summaryrefslogtreecommitdiff
path: root/src/char/pincode.c
diff options
context:
space:
mode:
authorDastgir <dastgirpojee@rocketmail.com>2015-07-20 18:26:25 +0530
committerDastgir <dastgirpojee@rocketmail.com>2015-07-20 18:26:25 +0530
commit4cf80b1e5f29c7973576863e0c4eee809e561702 (patch)
tree46933e0bcff309b6457547fd8b56298281a9c338 /src/char/pincode.c
parenta7c771a064f5beb5c7f5f3c09a4ad744ac7c7ef5 (diff)
parent5aaf2707e25b8fa369bf37da1d51d0a0ee203473 (diff)
downloadhercules-4cf80b1e5f29c7973576863e0c4eee809e561702.tar.gz
hercules-4cf80b1e5f29c7973576863e0c4eee809e561702.tar.bz2
hercules-4cf80b1e5f29c7973576863e0c4eee809e561702.tar.xz
hercules-4cf80b1e5f29c7973576863e0c4eee809e561702.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/char/pincode.c')
-rw-r--r--src/char/pincode.c3
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{