diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-10 14:50:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-16 15:52:35 +0300 |
commit | 38c48c78eb1d5822565504363863918e39e0cd4a (patch) | |
tree | 740ed3f18baff57e0ac33e6e8405d217546429d3 /src/emap/data/session.c | |
parent | 2ed4142dfcde097648857f41f8064b0a19c350c7 (diff) | |
download | plugin-38c48c78eb1d5822565504363863918e39e0cd4a.tar.gz plugin-38c48c78eb1d5822565504363863918e39e0cd4a.tar.bz2 plugin-38c48c78eb1d5822565504363863918e39e0cd4a.tar.xz plugin-38c48c78eb1d5822565504363863918e39e0cd4a.zip |
Fix compilation after HPM update in server.
Diffstat (limited to 'src/emap/data/session.c')
-rw-r--r-- | src/emap/data/session.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emap/data/session.c b/src/emap/data/session.c index c3c3ffa..0275ca5 100644 --- a/src/emap/data/session.c +++ b/src/emap/data/session.c @@ -1,6 +1,8 @@ // Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL. // Copyright (c) 2014 Evol developers +#include "common/hercules.h" + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -17,11 +19,11 @@ struct SessionExt *session_get(int fd) { - struct SessionExt *data = getFromSession(session[fd], 0); + struct SessionExt *data = getFromSession(sockt->session[fd], 0); if (!data) { data = session_create(); - addToSession(session[fd], data, 0, true); + addToSession(sockt->session[fd], data, 0, true); } return data; } |