summaryrefslogtreecommitdiff
path: root/src/emap/atcommand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/atcommand.c')
-rw-r--r--src/emap/atcommand.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/emap/atcommand.c b/src/emap/atcommand.c
index c697b22..2647169 100644
--- a/src/emap/atcommand.c
+++ b/src/emap/atcommand.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>
@@ -47,7 +49,7 @@ const char* eatcommand_msgfd(int *fdPtr, int *msgPtr)
{
const int msg_number = *msgPtr;
const int fd = *fdPtr;
- struct map_session_data *sd = session_isValid(fd) ? session[fd]->session_data : NULL;
+ struct map_session_data *sd = sockt->session_is_valid(fd) ? sockt->session[fd]->session_data : NULL;
if (!(msg_number >= 0 && msg_number < MAX_MSG))
{
hookStop();