diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-01-22 09:37:47 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-01-22 09:37:47 +0000 |
commit | 7928947b09b3e7b7f317379d16f9b47299d26cee (patch) | |
tree | f11a38cba1034265f427273cbf6196b948bb8a46 /src/map/clif.c | |
parent | e5b1b4c350134f4304a9d3b4858f99ecf235b31f (diff) | |
download | hercules-7928947b09b3e7b7f317379d16f9b47299d26cee.tar.gz hercules-7928947b09b3e7b7f317379d16f9b47299d26cee.tar.bz2 hercules-7928947b09b3e7b7f317379d16f9b47299d26cee.tar.xz hercules-7928947b09b3e7b7f317379d16f9b47299d26cee.zip |
* Changed val4 of SC_BLADESTOP from a block_list pointer to an id. (64bit portability issue and potential dangling pointer crash)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13471 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 6038a4947..662cfb580 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -5957,22 +5957,18 @@ int clif_combo_delay(struct block_list *bl,int wait) /*========================================== *”’nŽæ‚è *------------------------------------------*/ -int clif_bladestop(struct block_list *src,struct block_list *dst, - int _bool) +void clif_bladestop(struct block_list *src, int dst_id, int active) { unsigned char buf[32]; nullpo_retr(0, src); - nullpo_retr(0, dst); WBUFW(buf,0)=0x1d1; WBUFL(buf,2)=src->id; - WBUFL(buf,6)=dst->id; - WBUFL(buf,10)=_bool; + WBUFL(buf,6)=dst_id; + WBUFL(buf,10)=active; clif_send(buf,packet_len(0x1d1),src,AREA); - - return 0; } /*========================================== |