summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-11-16 01:42:47 +0100
committerHaru <haru@dotalux.com>2014-11-16 07:16:22 +0100
commit72c36285c7cda6b953782b2291474ef25b8763ee (patch)
treef577021ba57ef462611ea511858df9f9fabcbca3 /src/char/char.c
parentb4d2f41696de385a08e5830c785ad7fc8e691992 (diff)
downloadhercules-72c36285c7cda6b953782b2291474ef25b8763ee.tar.gz
hercules-72c36285c7cda6b953782b2291474ef25b8763ee.tar.bz2
hercules-72c36285c7cda6b953782b2291474ef25b8763ee.tar.xz
hercules-72c36285c7cda6b953782b2291474ef25b8763ee.zip
Moved pincode settings into the interface
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 8aab5bffb..d5adaa251 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -213,7 +213,7 @@ void char_set_char_charselect(int account_id)
character->char_id = -1;
character->server = -1;
if(character->pincode_enable == -1)
- character->pincode_enable = *pincode->charselect + *pincode->enabled;
+ character->pincode_enable = pincode->charselect + pincode->enabled;
if(character->waiting_disconnect != INVALID_TIMER) {
timer->delete(character->waiting_disconnect, chr->waiting_disconnect);
@@ -4437,7 +4437,7 @@ void char_parse_char_select(int fd, struct char_session_data* sd, uint32 ipl)
RFIFOSKIP(fd,3);
#if PACKETVER >= 20110309
- if( *pincode->enabled ){ // hack check
+ if( pincode->enabled ){ // hack check
struct online_char_data* character;
character = (struct online_char_data*)idb_get(chr->online_char_db, sd->account_id);
if( character && character->pincode_enable == -1){
@@ -4636,7 +4636,7 @@ void char_parse_char_delete_char(int fd, struct char_session_data* sd, unsigned
int cid = RFIFOL(fd,2);
int i;
#if PACKETVER >= 20110309
- if( *pincode->enabled ){ // hack check
+ if( pincode->enabled ){ // hack check
struct online_char_data* character;
character = (struct online_char_data*)idb_get(chr->online_char_db, sd->account_id);
if( character && character->pincode_enable == -1 ){