diff options
author | Haru <haru@dotalux.com> | 2015-08-09 02:17:43 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-08-13 16:33:30 +0200 |
commit | e28d54ae32480e7c47a5110c9fd6841f618b11b5 (patch) | |
tree | 65f74bd466217401bf74443ae57f253119dc5bc0 /src/map/intif.c | |
parent | a182a81fdcf5a9dec68cafdb8c4c42185e3f375e (diff) | |
download | hercules-e28d54ae32480e7c47a5110c9fd6841f618b11b5.tar.gz hercules-e28d54ae32480e7c47a5110c9fd6841f618b11b5.tar.bz2 hercules-e28d54ae32480e7c47a5110c9fd6841f618b11b5.tar.xz hercules-e28d54ae32480e7c47a5110c9fd6841f618b11b5.zip |
Moved session array into the socket interface
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/intif.c')
-rw-r--r-- | src/map/intif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/intif.c b/src/map/intif.c index 26fd1949c..a2e19f9e9 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -45,7 +45,7 @@ struct intif_interface intif_s; int CheckForCharServer(void) { - return ((chrif->fd <= 0) || session[chrif->fd] == NULL || session[chrif->fd]->wdata == NULL); + return ((chrif->fd <= 0) || sockt->session[chrif->fd] == NULL || sockt->session[chrif->fd]->wdata == NULL); } // pet @@ -2145,9 +2145,9 @@ void intif_request_accinfo( int u_fd, int aid, int group_lv, char* query ) { void intif_parse_MessageToFD(int fd) { int u_fd = RFIFOL(fd,4); - if( session[u_fd] && session[u_fd]->session_data ) { + if( sockt->session[u_fd] && sockt->session[u_fd]->session_data ) { int aid = RFIFOL(fd,8); - struct map_session_data * sd = session[u_fd]->session_data; + struct map_session_data * sd = sockt->session[u_fd]->session_data; /* matching e.g. previous fd owner didn't dc during request or is still the same */ if( sd && sd->bl.id == aid ) { char msg[512]; |