summaryrefslogtreecommitdiff
path: root/src/char/inter.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-09 17:44:22 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-15 11:47:30 +0300
commit13b0b431785e0fce57064b395de132c664d8fe7d (patch)
tree914f459fce65adcc63753261cc621025f1650fff /src/char/inter.c
parentbf851b3d39371874cb7478d55f4c94a2d5107a8e (diff)
downloadhercules-13b0b431785e0fce57064b395de132c664d8fe7d.tar.gz
hercules-13b0b431785e0fce57064b395de132c664d8fe7d.tar.bz2
hercules-13b0b431785e0fce57064b395de132c664d8fe7d.tar.xz
hercules-13b0b431785e0fce57064b395de132c664d8fe7d.zip
Move global variable into interface in char.c
Other variables better move to future char_config.
Diffstat (limited to 'src/char/inter.c')
-rw-r--r--src/char/inter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/inter.c b/src/char/inter.c
index be06bab35..39ebb02d4 100644
--- a/src/char/inter.c
+++ b/src/char/inter.c
@@ -707,7 +707,7 @@ void inter_savereg(int account_id, int char_id, const char *key, unsigned int in
{
/* to login server we go! */
if( key[0] == '#' && key[1] == '#' ) {/* global account reg */
- if( session_isValid(login_fd) )
+ if( session_isValid(chr->login_fd) )
chr->global_accreg_to_login_add(key,index,val,is_string);
else {
ShowError("Login server unavailable, cant perform update on '%s' variable for AID:%d CID:%d\n",key,account_id,char_id);
@@ -1316,7 +1316,7 @@ int mapif_parse_Registry(int fd)
int cursor = 14, i;
char key[32], sval[254];
unsigned int index;
- bool isLoginActive = session_isActive(login_fd);
+ bool isLoginActive = session_isActive(chr->login_fd);
if( isLoginActive )
chr->global_accreg_to_login_start(account_id,char_id);