summaryrefslogtreecommitdiff
path: root/src/emap/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/map.c')
-rw-r--r--src/emap/map.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/emap/map.c b/src/emap/map.c
index 55f4245..c6c722c 100644
--- a/src/emap/map.c
+++ b/src/emap/map.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>
@@ -70,7 +72,7 @@ void emap_online_list(int fd)
return;
}
- TBL_PC* ssd = (TBL_PC*)session[fd]->session_data;
+ TBL_PC* ssd = (TBL_PC*)sockt->session[fd]->session_data;
if (!ssd)
{
aFree(buf);