summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-01-13 22:37:06 -0200
committershennetsind <ind@henn.et>2014-01-13 22:37:06 -0200
commit8d1b8108fcad1a628531801914950b5f92767b0a (patch)
treefe879c6b8feb8bd5b973a5417af15314d69c8f2a /src/map
parentff4faca9cc44e98abad50bfda849f596d7bc81c1 (diff)
downloadhercules-8d1b8108fcad1a628531801914950b5f92767b0a.tar.gz
hercules-8d1b8108fcad1a628531801914950b5f92767b0a.tar.bz2
hercules-8d1b8108fcad1a628531801914950b5f92767b0a.tar.xz
hercules-8d1b8108fcad1a628531801914950b5f92767b0a.zip
Fixed @reloadskilldb issue with offline char server
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/chrif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index aaef0d6ef..1bed99d3a 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -1367,6 +1367,9 @@ void chrif_skillid2idx(int fd) {
if( fd == 0 ) fd = chrif->fd;
+ if( !session_isValid(fd) )
+ return;
+
WFIFOHEAD(fd,4 + (MAX_SKILL * 4));
WFIFOW(fd,0) = 0x2b0b;
for(i = 0; i < MAX_SKILL; i++) {