summaryrefslogtreecommitdiff
path: root/src/emap/data
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/data')
-rw-r--r--src/emap/data/itemd.c2
-rw-r--r--src/emap/data/mapd.c2
-rw-r--r--src/emap/data/npcd.c2
-rw-r--r--src/emap/data/session.c6
4 files changed, 10 insertions, 2 deletions
diff --git a/src/emap/data/itemd.c b/src/emap/data/itemd.c
index e7af7f2..6768ad4 100644
--- a/src/emap/data/itemd.c
+++ b/src/emap/data/itemd.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>
diff --git a/src/emap/data/mapd.c b/src/emap/data/mapd.c
index cb1a506..e1f7969 100644
--- a/src/emap/data/mapd.c
+++ b/src/emap/data/mapd.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>
diff --git a/src/emap/data/npcd.c b/src/emap/data/npcd.c
index 183db46..7da1690 100644
--- a/src/emap/data/npcd.c
+++ b/src/emap/data/npcd.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>
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;
}