From 838e87120758507b0be05b87af4a470f251e5bbd Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 20 Nov 2006 15:08:43 +0000 Subject: - Raised the amount of skills that can stack on a single cell before the "in-area/out-area" detection code breaks to 24 (from 8) - Fixed a crash in clif_SkillInfoBlock if the passed player already disconnected. - Added limiting drop rate to 100% from item-bonuses that depend on the mob's level so that "@autoloot 100" will catch them. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9270 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index 28e3f0ecd..b268818ce 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -4391,6 +4391,8 @@ int clif_skillinfoblock(struct map_session_data *sd) nullpo_retr(0, sd); fd=sd->fd; + if (!fd) return 0; + WFIFOHEAD(fd, MAX_SKILL * 37 + 4); WFIFOW(fd,0)=0x10f; for ( i = c = 0; i < MAX_SKILL; i++){ @@ -4416,7 +4418,7 @@ int clif_skillinfoblock(struct map_session_data *sd) WFIFOW(fd,2)=len; WFIFOSET(fd,len); - return 0; + return 1; } /*========================================== -- cgit v1.2.3-70-g09d2