From 38c48c78eb1d5822565504363863918e39e0cd4a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 10 Aug 2015 14:50:09 +0300 Subject: Fix compilation after HPM update in server. --- src/emap/clif.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/emap/clif.c') diff --git a/src/emap/clif.c b/src/emap/clif.c index 9ebc21e..69ed4f2 100644 --- a/src/emap/clif.c +++ b/src/emap/clif.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 #include #include @@ -95,7 +97,7 @@ void eclif_charnameack(int *fdPtr, struct block_list *bl) if (bl->type == BL_NPC) { int fd = *fdPtr; - TBL_PC* sd = (TBL_PC*)session[fd]->session_data; + TBL_PC* sd = (TBL_PC*)sockt->session[fd]->session_data; if (!sd) { hookStop(); @@ -138,7 +140,7 @@ void eclif_charnameack(int *fdPtr, struct block_list *bl) if (md->guardian_data && md->guardian_data->g) return; // allow default code to work int fd = *fdPtr; - TBL_PC* sd = (TBL_PC*)session[fd]->session_data; + TBL_PC* sd = (TBL_PC*)sockt->session[fd]->session_data; if (!sd) { hookStop(); -- cgit v1.2.3-70-g09d2