From 13b0b431785e0fce57064b395de132c664d8fe7d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Nov 2014 17:44:22 +0300 Subject: Move global variable into interface in char.c Other variables better move to future char_config. --- src/char/inter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/char/inter.c') 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); -- cgit v1.2.3-60-g2f50