summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-08 18:56:27 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-08 18:56:27 +0000
commit2c5d67942caecebe8a902331fcae7686880e9c26 (patch)
treec351e5f2ca931670a8e72a7e085ad16c56be20db /src/map/pc.c
parentd2a78fd705e06077e9e7e2afb6fc3df99576096c (diff)
downloadhercules-2c5d67942caecebe8a902331fcae7686880e9c26.tar.gz
hercules-2c5d67942caecebe8a902331fcae7686880e9c26.tar.bz2
hercules-2c5d67942caecebe8a902331fcae7686880e9c26.tar.xz
hercules-2c5d67942caecebe8a902331fcae7686880e9c26.zip
- Cleaned clif_pvpset to not send the packet to nearby characters when the source is GM-hidden. May help fix the crash on PvP with gm-hidden characters.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7053 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index d2db1d0cd..ff6a435cb 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6398,10 +6398,8 @@ int pc_calc_pvprank_sub(struct block_list *bl,va_list ap)
{
struct map_session_data *sd1,*sd2=NULL;
- nullpo_retr(0, bl);
- nullpo_retr(0, ap);
- nullpo_retr(0, sd1=(struct map_session_data *)bl);
- nullpo_retr(0, sd2=va_arg(ap,struct map_session_data *));
+ sd1=(struct map_session_data *)bl;
+ sd2=va_arg(ap,struct map_session_data *);
if( sd1->pvp_point > sd2->pvp_point )
sd2->pvp_rank++;