diff options
author | Haru <haru@dotalux.com> | 2018-04-22 19:23:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-22 19:23:41 +0200 |
commit | 01902e6393f6a750ee320e63f9092a981ce72696 (patch) | |
tree | aeb6e99d0cd15aea20c998f3d873060b5aab1686 /src/char/char.c | |
parent | 7b097da8b433ea3b768b6c306c12801f7ddef0a5 (diff) | |
parent | 940fce6309d2b99f27b00aa6738d40fe2219d12f (diff) | |
download | hercules-01902e6393f6a750ee320e63f9092a981ce72696.tar.gz hercules-01902e6393f6a750ee320e63f9092a981ce72696.tar.bz2 hercules-01902e6393f6a750ee320e63f9092a981ce72696.tar.xz hercules-01902e6393f6a750ee320e63f9092a981ce72696.zip |
Merge pull request #2007 from Jedzkie/PincodeUpdate
Pincode Update
Diffstat (limited to 'src/char/char.c')
-rw-r--r-- | src/char/char.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c index 84cc1b688..7e5b7e0dc 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -5012,7 +5012,7 @@ void char_parse_char_pincode_window(int fd, struct char_session_data* sd) __attr void char_parse_char_pincode_window(int fd, struct char_session_data* sd) { if (RFIFOL(fd,2) == sd->account_id) - pincode->sendstate(fd, sd, PINCODE_NOTSET); + pincode->loginstate(fd, sd, PINCODE_LOGIN_NOTSET); RFIFOSKIP(fd, 6); } @@ -6159,6 +6159,7 @@ int do_final(void) { do_final_mapif(); loginif->final(); + pincode->final(); if( SQL_ERROR == SQL->Query(inter->sql_handle, "DELETE FROM `%s`", ragsrvinfo_db) ) Sql_ShowDebug(inter->sql_handle); @@ -6305,6 +6306,7 @@ int do_init(int argc, char **argv) { //Read map indexes mapindex->init(); + pincode->init(); #ifdef RENEWAL start_point.map = mapindex->name2id("iz_int"); |